@homebound/beam 4.17.0 → 4.18.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 +58 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +58 -2
- package/dist/index.js.map +1 -1
- package/dist/truss.css +12 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13528,6 +13528,27 @@ function getVariantStyles(variant, type) {
|
|
|
13528
13528
|
}
|
|
13529
13529
|
};
|
|
13530
13530
|
}
|
|
13531
|
+
if (variant === "bold") {
|
|
13532
|
+
return {
|
|
13533
|
+
background: {
|
|
13534
|
+
...getBoldBackground(type),
|
|
13535
|
+
...{
|
|
13536
|
+
color: "white"
|
|
13537
|
+
}
|
|
13538
|
+
},
|
|
13539
|
+
iconColor: "rgba(255, 255, 255, 1)" /* White */,
|
|
13540
|
+
typography: {
|
|
13541
|
+
fontWeight: "fw6",
|
|
13542
|
+
fontSize: "fz_10px",
|
|
13543
|
+
lineHeight: "lh_14px",
|
|
13544
|
+
textTransform: "ttu"
|
|
13545
|
+
},
|
|
13546
|
+
padding: {
|
|
13547
|
+
paddingLeft: "pl_6px",
|
|
13548
|
+
paddingRight: "pr_6px"
|
|
13549
|
+
}
|
|
13550
|
+
};
|
|
13551
|
+
}
|
|
13531
13552
|
return {
|
|
13532
13553
|
...getPrimaryStyles(type),
|
|
13533
13554
|
typography: {
|
|
@@ -13542,6 +13563,38 @@ function getVariantStyles(variant, type) {
|
|
|
13542
13563
|
}
|
|
13543
13564
|
};
|
|
13544
13565
|
}
|
|
13566
|
+
function getBoldBackground(type) {
|
|
13567
|
+
switch (type) {
|
|
13568
|
+
case "info":
|
|
13569
|
+
return {
|
|
13570
|
+
backgroundColor: "bgBlue600"
|
|
13571
|
+
};
|
|
13572
|
+
case "update":
|
|
13573
|
+
return {
|
|
13574
|
+
backgroundColor: "bgYellow600"
|
|
13575
|
+
};
|
|
13576
|
+
case "warning":
|
|
13577
|
+
return {
|
|
13578
|
+
backgroundColor: "bgOrange600"
|
|
13579
|
+
};
|
|
13580
|
+
case "error":
|
|
13581
|
+
return {
|
|
13582
|
+
backgroundColor: "bgRed600"
|
|
13583
|
+
};
|
|
13584
|
+
case "success":
|
|
13585
|
+
return {
|
|
13586
|
+
backgroundColor: "bgGreen600"
|
|
13587
|
+
};
|
|
13588
|
+
case "ai":
|
|
13589
|
+
return {
|
|
13590
|
+
backgroundColor: "bgPurple600"
|
|
13591
|
+
};
|
|
13592
|
+
default:
|
|
13593
|
+
return {
|
|
13594
|
+
backgroundColor: "bgGray600"
|
|
13595
|
+
};
|
|
13596
|
+
}
|
|
13597
|
+
}
|
|
13545
13598
|
function getPrimaryStyles(type) {
|
|
13546
13599
|
switch (type) {
|
|
13547
13600
|
case "info":
|
|
@@ -16522,9 +16575,9 @@ function Card(props) {
|
|
|
16522
16575
|
icon: "verticalDots",
|
|
16523
16576
|
color: isList ? "--b-on-surface-muted" /* OnSurfaceMuted */ : "--b-on-primary" /* OnPrimary */
|
|
16524
16577
|
}, items: buttonMenuItems }) }),
|
|
16525
|
-
tag && !isList && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "absolute l_1 tp_4px", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Tag, { type: tag.type, text: tag.text, ...tid.tag }) }),
|
|
16578
|
+
tag && !isList && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "absolute l_1 tp_4px", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Tag, { type: tag.type, variant: tag.variant, text: tag.text, ...tid.tag }) }),
|
|
16526
16579
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "df fdc aifs g_1", children: [
|
|
16527
|
-
tag && isList && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Tag, { type: tag.type, text: tag.text, ...tid.tag }),
|
|
16580
|
+
tag && isList && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Tag, { type: tag.type, variant: tag.variant, text: tag.text, ...tid.tag }),
|
|
16528
16581
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { children: [
|
|
16529
16582
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ...(0, import_runtime61.trussProps)({
|
|
16530
16583
|
fontWeight: "fw6",
|
|
@@ -20166,6 +20219,7 @@ function InlineFeedbackBanner(props) {
|
|
|
20166
20219
|
const {
|
|
20167
20220
|
type,
|
|
20168
20221
|
tagText,
|
|
20222
|
+
tagVariant,
|
|
20169
20223
|
description,
|
|
20170
20224
|
actions = []
|
|
20171
20225
|
} = props;
|
|
@@ -20178,10 +20232,12 @@ function InlineFeedbackBanner(props) {
|
|
|
20178
20232
|
const tid = useTestIds(props, "inlineFeedbackBanner");
|
|
20179
20233
|
const tagProps = tagText ? {
|
|
20180
20234
|
type: tagType,
|
|
20235
|
+
variant: tagVariant,
|
|
20181
20236
|
icon,
|
|
20182
20237
|
text: tagText
|
|
20183
20238
|
} : {
|
|
20184
20239
|
type: tagType,
|
|
20240
|
+
variant: tagVariant,
|
|
20185
20241
|
icon,
|
|
20186
20242
|
text: fallbackTagText,
|
|
20187
20243
|
iconOnly: true
|