@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.d.cts CHANGED
@@ -5028,7 +5028,7 @@ type MenuSection = MenuItem & {
5028
5028
  };
5029
5029
 
5030
5030
  type TagXss = Margin | "backgroundColor" | "color";
5031
- type TagType = "info" | "caution" | "warning" | "success" | "neutral";
5031
+ type TagType = "info" | "update" | "warning" | "error" | "success" | "neutral";
5032
5032
  type TagVariant = "primary" | "secondary";
5033
5033
  type TagPropsBase<X> = {
5034
5034
  text: ReactNode;
package/dist/index.d.ts CHANGED
@@ -5028,7 +5028,7 @@ type MenuSection = MenuItem & {
5028
5028
  };
5029
5029
 
5030
5030
  type TagXss = Margin | "backgroundColor" | "color";
5031
- type TagType = "info" | "caution" | "warning" | "success" | "neutral";
5031
+ type TagType = "info" | "update" | "warning" | "error" | "success" | "neutral";
5032
5032
  type TagVariant = "primary" | "secondary";
5033
5033
  type TagPropsBase<X> = {
5034
5034
  text: ReactNode;
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: "h100",
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__ */ jsxs50("h4", { className: "fwb fz_20px lh_28px", ...tid.title, children: [
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
- data && data?.length > 0 && /* @__PURE__ */ jsx86("dl", { className: "dg gtc_repeat_2_minmax_0_1fr fw4 fz_14px lh_20px", children: data.map((d, idx) => /* @__PURE__ */ jsxs50("div", { ...trussProps51({
16247
- display: "df",
16248
- gap: "gap_4px",
16249
- gridColumn: ["gc_var", {
16250
- "--gridColumn": maybeCssVar30(idx % 2 + 1)
16251
- }]
16252
- }), ...tid[defaultTestId(d.label)], children: [
16253
- /* @__PURE__ */ jsxs50("dt", { children: [
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("dd", { children: d.value })
16258
- ] }, d.label)) }),
16259
- progress !== void 0 && /* @__PURE__ */ jsx86("div", { className: "df fdc gap1", children: /* @__PURE__ */ jsxs50("div", { className: "df aic gap1 fs_10px lh_14px", children: [
16260
- /* @__PURE__ */ jsx86("div", { className: "w25 h_8px br4 bgGray200", children: /* @__PURE__ */ jsx86("div", { ...trussProps51({
16261
- height: "h100",
16262
- borderRadius: "br4",
16263
- backgroundColor: "bgBlue500",
16264
- width: ["w_var", {
16265
- "--width": maybeCssVar30(__maybeInc10(`${progressValue}%`))
16266
- }]
16267
- }) }) }),
16268
- /* @__PURE__ */ jsxs50("span", { ...tid.progressValue, children: [
16269
- progressValue,
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
  }
@@ -21664,7 +21669,7 @@ function getPrimaryStyles(type) {
21664
21669
  },
21665
21670
  iconColor: "rgba(37, 99, 235, 1)" /* Blue600 */
21666
21671
  };
21667
- case "caution":
21672
+ case "update":
21668
21673
  return {
21669
21674
  background: {
21670
21675
  backgroundColor: "bgYellow200"
@@ -21674,14 +21679,21 @@ function getPrimaryStyles(type) {
21674
21679
  case "warning":
21675
21680
  return {
21676
21681
  background: {
21677
- backgroundColor: "bgRed200"
21682
+ backgroundColor: "bgOrange100"
21683
+ },
21684
+ iconColor: "rgba(194, 65, 12, 1)" /* Orange700 */
21685
+ };
21686
+ case "error":
21687
+ return {
21688
+ background: {
21689
+ backgroundColor: "bgRed100"
21678
21690
  },
21679
21691
  iconColor: "rgba(194, 65, 12, 1)" /* Orange700 */
21680
21692
  };
21681
21693
  case "success":
21682
21694
  return {
21683
21695
  background: {
21684
- backgroundColor: "bgGreen200"
21696
+ backgroundColor: "bgGreen100"
21685
21697
  },
21686
21698
  iconColor: "rgba(5, 150, 105, 1)" /* Green600 */
21687
21699
  };