@homebound/beam 3.41.0 → 3.42.1
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 +48 -36
- 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 +48 -36
- package/dist/index.js.map +1 -1
- package/dist/truss.css +4 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16673,66 +16673,71 @@ function TableCardView(props) {
|
|
|
16673
16673
|
} = props;
|
|
16674
16674
|
const tid = useTestIds(props, "tableCardView");
|
|
16675
16675
|
const progressValue = (0, import_react81.useMemo)(() => progress !== void 0 ? clampProgress(progress) : 0, [progress]);
|
|
16676
|
+
const col1 = data.slice(0, Math.ceil(data.length / 2));
|
|
16677
|
+
const col2 = data.slice(Math.ceil(data.length / 2));
|
|
16676
16678
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { ...(0, import_runtime55.trussProps)({
|
|
16677
16679
|
paddingTop: "pt3",
|
|
16678
16680
|
paddingBottom: "pb3",
|
|
16679
16681
|
paddingRight: "pr3",
|
|
16680
16682
|
paddingLeft: "pl3",
|
|
16681
16683
|
width: "w100",
|
|
16682
|
-
height: "
|
|
16684
|
+
height: "h_430px",
|
|
16683
16685
|
boxShadow: "bshBasic",
|
|
16684
16686
|
backgroundColor: ["bgColor_var", {
|
|
16685
16687
|
"--backgroundColor": "var(--b-surface)"
|
|
16686
16688
|
}],
|
|
16687
16689
|
display: "df",
|
|
16688
16690
|
flexDirection: "fdc",
|
|
16689
|
-
gap: "gap2"
|
|
16691
|
+
gap: "gap2",
|
|
16692
|
+
borderRadius: "br8"
|
|
16690
16693
|
}), ...tid, children: [
|
|
16691
16694
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "relative", children: [
|
|
16692
16695
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("img", { className: "h_184px w100 objectFit_cover", src: imgSrc, alt: title, ...tid.image }),
|
|
16693
16696
|
status && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "absolute top1 left1", ...tid.status, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Tag, { ...status }) })
|
|
16694
16697
|
] }),
|
|
16695
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "df fdc gap2", children: [
|
|
16698
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "df fdc gap2 jcsb h100", children: [
|
|
16696
16699
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { children: [
|
|
16697
16700
|
eyebrow && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "fw4 fz_14px lh_20px", ...tid.eyebrow, children: eyebrow }),
|
|
16698
16701
|
title && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "dif w100 jcsb aic", children: [
|
|
16699
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.
|
|
16700
|
-
title,
|
|
16701
|
-
" "
|
|
16702
|
-
] }),
|
|
16702
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h4", { className: "fwb fz_20px lh_28px oh d_negwebkit_box wbo_vertical to_ellipsis wlc_2", ...tid.title, children: title }),
|
|
16703
16703
|
(badge || badgeTags?.length) && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "dif aic gap1 fs0", ...tid.badge, children: [
|
|
16704
16704
|
badge && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "fw4 fz_14px lh_20px wsnw", children: badge }),
|
|
16705
16705
|
badgeTags?.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Tag, { ...tag }, tag.text))
|
|
16706
16706
|
] })
|
|
16707
16707
|
] })
|
|
16708
16708
|
] }),
|
|
16709
|
-
|
|
16710
|
-
|
|
16711
|
-
|
|
16712
|
-
|
|
16713
|
-
|
|
16714
|
-
|
|
16715
|
-
|
|
16716
|
-
|
|
16717
|
-
d.label,
|
|
16718
|
-
":"
|
|
16709
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "df fdc gap2", children: [
|
|
16710
|
+
data && data?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("dl", { className: "df gap2 fw4 fz_14px lh_20px", children: [
|
|
16711
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "df fdc fg1", children: col1.map((d) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "df gap_4px", ...tid[defaultTestId(d.label)], children: [
|
|
16712
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("dt", { children: [
|
|
16713
|
+
d.label,
|
|
16714
|
+
":"
|
|
16715
|
+
] }),
|
|
16716
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dd", { children: d.value })
|
|
16717
|
+
] }, d.label)) }),
|
|
16718
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "df fdc fg1", children: col2.map((d) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "df gap_4px", ...tid[defaultTestId(d.label)], children: [
|
|
16719
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("dt", { children: [
|
|
16720
|
+
d.label,
|
|
16721
|
+
":"
|
|
16722
|
+
] }),
|
|
16723
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dd", { children: d.value })
|
|
16724
|
+
] }, d.label)) })
|
|
16719
16725
|
] }),
|
|
16720
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("
|
|
16721
|
-
|
|
16722
|
-
|
|
16723
|
-
|
|
16724
|
-
|
|
16725
|
-
|
|
16726
|
-
|
|
16727
|
-
|
|
16728
|
-
|
|
16729
|
-
|
|
16730
|
-
|
|
16731
|
-
|
|
16732
|
-
|
|
16733
|
-
|
|
16734
|
-
|
|
16735
|
-
] }) })
|
|
16726
|
+
progress !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "df fdc gap1", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "df aic gap1 fs_10px lh_14px", children: [
|
|
16727
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "w25 h_8px br4 bgGray200", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { ...(0, import_runtime55.trussProps)({
|
|
16728
|
+
height: "h100",
|
|
16729
|
+
borderRadius: "br4",
|
|
16730
|
+
backgroundColor: "bgBlue500",
|
|
16731
|
+
width: ["w_var", {
|
|
16732
|
+
"--width": (0, import_runtime55.maybeCssVar)(__maybeInc10(`${progressValue}%`))
|
|
16733
|
+
}]
|
|
16734
|
+
}) }) }),
|
|
16735
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("span", { ...tid.progressValue, children: [
|
|
16736
|
+
progressValue,
|
|
16737
|
+
"%"
|
|
16738
|
+
] })
|
|
16739
|
+
] }) })
|
|
16740
|
+
] })
|
|
16736
16741
|
] })
|
|
16737
16742
|
] });
|
|
16738
16743
|
}
|
|
@@ -22127,7 +22132,7 @@ function getPrimaryStyles(type) {
|
|
|
22127
22132
|
},
|
|
22128
22133
|
iconColor: "rgba(37, 99, 235, 1)" /* Blue600 */
|
|
22129
22134
|
};
|
|
22130
|
-
case "
|
|
22135
|
+
case "update":
|
|
22131
22136
|
return {
|
|
22132
22137
|
background: {
|
|
22133
22138
|
backgroundColor: "bgYellow200"
|
|
@@ -22137,14 +22142,21 @@ function getPrimaryStyles(type) {
|
|
|
22137
22142
|
case "warning":
|
|
22138
22143
|
return {
|
|
22139
22144
|
background: {
|
|
22140
|
-
backgroundColor: "
|
|
22145
|
+
backgroundColor: "bgOrange100"
|
|
22146
|
+
},
|
|
22147
|
+
iconColor: "rgba(194, 65, 12, 1)" /* Orange700 */
|
|
22148
|
+
};
|
|
22149
|
+
case "error":
|
|
22150
|
+
return {
|
|
22151
|
+
background: {
|
|
22152
|
+
backgroundColor: "bgRed100"
|
|
22141
22153
|
},
|
|
22142
22154
|
iconColor: "rgba(194, 65, 12, 1)" /* Orange700 */
|
|
22143
22155
|
};
|
|
22144
22156
|
case "success":
|
|
22145
22157
|
return {
|
|
22146
22158
|
background: {
|
|
22147
|
-
backgroundColor: "
|
|
22159
|
+
backgroundColor: "bgGreen100"
|
|
22148
22160
|
},
|
|
22149
22161
|
iconColor: "rgba(5, 150, 105, 1)" /* Green600 */
|
|
22150
22162
|
};
|