@homebound/beam 4.20.0 → 4.20.2
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 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -11
- package/dist/index.js.map +1 -1
- package/dist/truss.css +10 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7722,8 +7722,12 @@ function CompanionRowImpl(props) {
|
|
|
7722
7722
|
...{
|
|
7723
7723
|
height: "ha",
|
|
7724
7724
|
whiteSpace: "wsn",
|
|
7725
|
-
paddingTop: "
|
|
7726
|
-
|
|
7725
|
+
paddingTop: ["pt_var", {
|
|
7726
|
+
"--paddingTop": `${isLeading ? 12 : 8}px`
|
|
7727
|
+
}],
|
|
7728
|
+
paddingBottom: ["pb_var", {
|
|
7729
|
+
"--paddingBottom": `${isLeading ? 8 : 12}px`
|
|
7730
|
+
}],
|
|
7727
7731
|
width: ["w_var", {
|
|
7728
7732
|
"--width": (0, import_runtime16.maybeCssVar)(__maybeInc7(`calc(${columnSizes.join(" + ")}${levelIndent ? ` - ${levelIndent}px` : ""})`))
|
|
7729
7733
|
}]
|
|
@@ -12890,7 +12894,8 @@ var variantStyles2 = {
|
|
|
12890
12894
|
hoverStyles: {
|
|
12891
12895
|
color: ["color_var", {
|
|
12892
12896
|
"--color": "var(--b-text-link-hover)"
|
|
12893
|
-
}]
|
|
12897
|
+
}],
|
|
12898
|
+
textDecoration: "tdu"
|
|
12894
12899
|
},
|
|
12895
12900
|
pressedStyles: {
|
|
12896
12901
|
color: ["color_var", {
|
|
@@ -13364,7 +13369,18 @@ function OverlayTrigger(props) {
|
|
|
13364
13369
|
});
|
|
13365
13370
|
const tid = useTestIds(props, isTextButton(trigger) ? defaultTestId(labelOr(trigger, "overlayTrigger")) : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name);
|
|
13366
13371
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "dib lh_0", children: [
|
|
13367
|
-
isTextButton(trigger) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Button, { variant: variant ? variant : "secondary", ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, endAdornment: !hideEndAdornment ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
13372
|
+
isTextButton(trigger) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Button, { variant: variant ? variant : "secondary", ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, endAdornment: !hideEndAdornment ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
13373
|
+
Icon,
|
|
13374
|
+
{
|
|
13375
|
+
icon: state.isOpen ? "chevronUp" : "chevronDown",
|
|
13376
|
+
...(trigger.variant ?? variant) === "text" && {
|
|
13377
|
+
inc: 2,
|
|
13378
|
+
xss: {
|
|
13379
|
+
marginLeft: "ml_neg6px"
|
|
13380
|
+
}
|
|
13381
|
+
}
|
|
13382
|
+
}
|
|
13383
|
+
) : null, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen, ...tid }) : isNavLinkButton(trigger) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavLink, { active: trigger.active, variant: trigger.variant, icon: trigger.icon, label: trigger.navLabel, disabled: !!disabled, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid }) : isIconButton(trigger) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IconButton, { ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(AvatarButton, { ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen }),
|
|
13368
13384
|
state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Popover, { triggerRef: buttonRef, popoverRef, positionProps, onClose: () => state.close(), isOpen: state.isOpen, children })
|
|
13369
13385
|
] });
|
|
13370
13386
|
}
|
|
@@ -20334,7 +20350,6 @@ function InlineFeedbackBanner(props) {
|
|
|
20334
20350
|
return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { ...(0, import_runtime85.trussProps)({
|
|
20335
20351
|
display: "df",
|
|
20336
20352
|
alignItems: "ais",
|
|
20337
|
-
gap: "g_1",
|
|
20338
20353
|
width: "w100",
|
|
20339
20354
|
paddingTop: "pt1",
|
|
20340
20355
|
paddingBottom: "pb1",
|
|
@@ -20352,23 +20367,28 @@ function InlineFeedbackBanner(props) {
|
|
|
20352
20367
|
borderColor: ["bc_var", {
|
|
20353
20368
|
"--borderColor": (0, import_runtime85.maybeCssVar)(borderColor)
|
|
20354
20369
|
}],
|
|
20355
|
-
boxShadow: "
|
|
20370
|
+
boxShadow: ["boxShadow_var", {
|
|
20371
|
+
"--boxShadow": (0, import_runtime85.maybeCssVar)(bannerShadow)
|
|
20372
|
+
}]
|
|
20356
20373
|
}), ...tid, children: [
|
|
20357
|
-
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "df fs0", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Tag, { ...tagProps, ...tid.tag }) }),
|
|
20374
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "df aic h_24px fs0", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Tag, { ...tagProps, ...tid.tag }) }),
|
|
20358
20375
|
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { ...(0, import_runtime85.trussProps)({
|
|
20359
20376
|
flexGrow: "fg1",
|
|
20360
20377
|
minWidth: "mw0",
|
|
20361
|
-
|
|
20378
|
+
marginLeft: "ml_4px",
|
|
20379
|
+
paddingTop: "pt_4px",
|
|
20380
|
+
paddingBottom: "pb_4px",
|
|
20362
20381
|
color: ["color_var", {
|
|
20363
20382
|
"--color": "var(--b-on-surface)"
|
|
20364
20383
|
}]
|
|
20365
20384
|
}), ...tid.description, children: description }),
|
|
20366
|
-
actions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "df aic
|
|
20385
|
+
actions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "df aic h_24px g_2 ml_20px fs0", children: actions.map((action) => "kind" in action ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ButtonMenu, { trigger: {
|
|
20367
20386
|
label: action.label,
|
|
20368
20387
|
variant: "text"
|
|
20369
20388
|
}, items: action.items, disabled: action.disabled, tooltip: action.tooltip }, action.label) : /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Button, { ...action, variant: "text" }, `${action.label}`)) })
|
|
20370
20389
|
] });
|
|
20371
20390
|
}
|
|
20391
|
+
var bannerShadow = "0px 2px 4px rgba(53, 53, 53, 0.08)";
|
|
20372
20392
|
var typeStyles2 = {
|
|
20373
20393
|
error: {
|
|
20374
20394
|
icon: "xCircle",
|
|
@@ -29283,7 +29303,8 @@ function TabImpl(props) {
|
|
|
29283
29303
|
hoverStyles: hoverStyles4,
|
|
29284
29304
|
disabledStyles: disabledStyles3,
|
|
29285
29305
|
activeHoverStyles,
|
|
29286
|
-
aiStyles
|
|
29306
|
+
aiStyles,
|
|
29307
|
+
activeAiStyles
|
|
29287
29308
|
} = (0, import_react158.useMemo)(() => getTabStyles(), []);
|
|
29288
29309
|
const uniqueValue = uniqueTabValue(tab);
|
|
29289
29310
|
const tid = useTestIds(others);
|
|
@@ -29297,9 +29318,10 @@ function TabImpl(props) {
|
|
|
29297
29318
|
...others,
|
|
29298
29319
|
...(0, import_runtime146.trussProps)({
|
|
29299
29320
|
...baseStyles4,
|
|
29300
|
-
// Only tints the label while the tab is unselected; selected keeps its own darker treatment.
|
|
29301
29321
|
...aiMode && aiStyles,
|
|
29302
29322
|
...active && activeStyles3,
|
|
29323
|
+
// After `activeStyles` so the selected AI tab stays purple, but before `disabledStyles` so disabled still wins.
|
|
29324
|
+
...active && aiMode && activeAiStyles,
|
|
29303
29325
|
...isDisabled && disabledStyles3,
|
|
29304
29326
|
...isHovered && hoverStyles4,
|
|
29305
29327
|
...isHovered && active && activeHoverStyles,
|
|
@@ -29391,6 +29413,11 @@ function getTabStyles() {
|
|
|
29391
29413
|
"--color": (0, import_runtime146.maybeCssVar)("rgba(109, 40, 217, 1)" /* Purple700 */)
|
|
29392
29414
|
}]
|
|
29393
29415
|
},
|
|
29416
|
+
activeAiStyles: {
|
|
29417
|
+
color: ["color_var", {
|
|
29418
|
+
"--color": (0, import_runtime146.maybeCssVar)("rgba(91, 33, 182, 1)" /* Purple800 */)
|
|
29419
|
+
}]
|
|
29420
|
+
},
|
|
29394
29421
|
focusRingStyles: {
|
|
29395
29422
|
backgroundColor: "bgBlue50",
|
|
29396
29423
|
boxShadow: "bshFocus"
|