@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 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: "h100",
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.jsxs)("h4", { className: "fwb fz_20px lh_28px", ...tid.title, children: [
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
- data && data?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("dl", { className: "dg gtc_repeat_2_minmax_0_1fr fw4 fz_14px lh_20px", children: data.map((d, idx) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { ...(0, import_runtime55.trussProps)({
16710
- display: "df",
16711
- gap: "gap_4px",
16712
- gridColumn: ["gc_var", {
16713
- "--gridColumn": (0, import_runtime55.maybeCssVar)(idx % 2 + 1)
16714
- }]
16715
- }), ...tid[defaultTestId(d.label)], children: [
16716
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("dt", { children: [
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)("dd", { children: d.value })
16721
- ] }, d.label)) }),
16722
- 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: [
16723
- /* @__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)({
16724
- height: "h100",
16725
- borderRadius: "br4",
16726
- backgroundColor: "bgBlue500",
16727
- width: ["w_var", {
16728
- "--width": (0, import_runtime55.maybeCssVar)(__maybeInc10(`${progressValue}%`))
16729
- }]
16730
- }) }) }),
16731
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("span", { ...tid.progressValue, children: [
16732
- progressValue,
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 "caution":
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: "bgRed200"
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: "bgGreen200"
22159
+ backgroundColor: "bgGreen100"
22148
22160
  },
22149
22161
  iconColor: "rgba(5, 150, 105, 1)" /* Green600 */
22150
22162
  };