@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.js CHANGED
@@ -7243,8 +7243,12 @@ function CompanionRowImpl(props) {
7243
7243
  ...{
7244
7244
  height: "ha",
7245
7245
  whiteSpace: "wsn",
7246
- paddingTop: "pt_8px",
7247
- paddingBottom: "pb_8px",
7246
+ paddingTop: ["pt_var", {
7247
+ "--paddingTop": `${isLeading ? 12 : 8}px`
7248
+ }],
7249
+ paddingBottom: ["pb_var", {
7250
+ "--paddingBottom": `${isLeading ? 8 : 12}px`
7251
+ }],
7248
7252
  width: ["w_var", {
7249
7253
  "--width": maybeCssVar12(__maybeInc7(`calc(${columnSizes.join(" + ")}${levelIndent ? ` - ${levelIndent}px` : ""})`))
7250
7254
  }]
@@ -12411,7 +12415,8 @@ var variantStyles2 = {
12411
12415
  hoverStyles: {
12412
12416
  color: ["color_var", {
12413
12417
  "--color": "var(--b-text-link-hover)"
12414
- }]
12418
+ }],
12419
+ textDecoration: "tdu"
12415
12420
  },
12416
12421
  pressedStyles: {
12417
12422
  color: ["color_var", {
@@ -12884,7 +12889,18 @@ function OverlayTrigger(props) {
12884
12889
  return (
12885
12890
  // Add `line-height: 0` to prevent the Icon button and Avatar buttons from inheriting the line-height, causing them to be taller than they should.
12886
12891
  /* @__PURE__ */ jsxs26("div", { className: "dib lh_0", children: [
12887
- isTextButton(trigger) ? /* @__PURE__ */ jsx44(Button, { variant: variant ? variant : "secondary", ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, endAdornment: !hideEndAdornment ? /* @__PURE__ */ jsx44(Icon, { icon: state.isOpen ? "chevronUp" : "chevronDown" }) : null, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen, ...tid }) : isNavLinkButton(trigger) ? /* @__PURE__ */ jsx44(NavLink, { active: trigger.active, variant: trigger.variant, icon: trigger.icon, label: trigger.navLabel, disabled: !!disabled, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid }) : isIconButton(trigger) ? /* @__PURE__ */ jsx44(IconButton, { ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen }) : /* @__PURE__ */ jsx44(AvatarButton, { ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen }),
12892
+ isTextButton(trigger) ? /* @__PURE__ */ jsx44(Button, { variant: variant ? variant : "secondary", ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, endAdornment: !hideEndAdornment ? /* @__PURE__ */ jsx44(
12893
+ Icon,
12894
+ {
12895
+ icon: state.isOpen ? "chevronUp" : "chevronDown",
12896
+ ...(trigger.variant ?? variant) === "text" && {
12897
+ inc: 2,
12898
+ xss: {
12899
+ marginLeft: "ml_neg6px"
12900
+ }
12901
+ }
12902
+ }
12903
+ ) : null, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen, ...tid }) : isNavLinkButton(trigger) ? /* @__PURE__ */ jsx44(NavLink, { active: trigger.active, variant: trigger.variant, icon: trigger.icon, label: trigger.navLabel, disabled: !!disabled, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid }) : isIconButton(trigger) ? /* @__PURE__ */ jsx44(IconButton, { ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen }) : /* @__PURE__ */ jsx44(AvatarButton, { ...trigger, menuTriggerProps: wrappedMenuTriggerProps, buttonRef, ...tid, disabled, tooltip, onClick: wrappedMenuTriggerProps.onPress ?? noop, forceFocusStyles: showActiveBorder && state.isOpen }),
12888
12904
  state.isOpen && /* @__PURE__ */ jsx44(Popover, { triggerRef: buttonRef, popoverRef, positionProps, onClose: () => state.close(), isOpen: state.isOpen, children })
12889
12905
  ] })
12890
12906
  );
@@ -19861,7 +19877,6 @@ function InlineFeedbackBanner(props) {
19861
19877
  return /* @__PURE__ */ jsxs71("div", { ...trussProps75({
19862
19878
  display: "df",
19863
19879
  alignItems: "ais",
19864
- gap: "g_1",
19865
19880
  width: "w100",
19866
19881
  paddingTop: "pt1",
19867
19882
  paddingBottom: "pb1",
@@ -19879,23 +19894,28 @@ function InlineFeedbackBanner(props) {
19879
19894
  borderColor: ["bc_var", {
19880
19895
  "--borderColor": maybeCssVar34(borderColor)
19881
19896
  }],
19882
- boxShadow: "bshBasic"
19897
+ boxShadow: ["boxShadow_var", {
19898
+ "--boxShadow": maybeCssVar34(bannerShadow)
19899
+ }]
19883
19900
  }), ...tid, children: [
19884
- /* @__PURE__ */ jsx113("span", { className: "df fs0", children: /* @__PURE__ */ jsx113(Tag, { ...tagProps, ...tid.tag }) }),
19901
+ /* @__PURE__ */ jsx113("span", { className: "df aic h_24px fs0", children: /* @__PURE__ */ jsx113(Tag, { ...tagProps, ...tid.tag }) }),
19885
19902
  /* @__PURE__ */ jsx113("span", { ...trussProps75({
19886
19903
  flexGrow: "fg1",
19887
19904
  minWidth: "mw0",
19888
- paddingTop: "pt_1px",
19905
+ marginLeft: "ml_4px",
19906
+ paddingTop: "pt_4px",
19907
+ paddingBottom: "pb_4px",
19889
19908
  color: ["color_var", {
19890
19909
  "--color": "var(--b-on-surface)"
19891
19910
  }]
19892
19911
  }), ...tid.description, children: description }),
19893
- actions.length > 0 && /* @__PURE__ */ jsx113("div", { className: "df aic g_1_5 fs0", children: actions.map((action) => "kind" in action ? /* @__PURE__ */ jsx113(ButtonMenu, { trigger: {
19912
+ actions.length > 0 && /* @__PURE__ */ jsx113("div", { className: "df aic h_24px g_2 ml_20px fs0", children: actions.map((action) => "kind" in action ? /* @__PURE__ */ jsx113(ButtonMenu, { trigger: {
19894
19913
  label: action.label,
19895
19914
  variant: "text"
19896
19915
  }, items: action.items, disabled: action.disabled, tooltip: action.tooltip }, action.label) : /* @__PURE__ */ jsx113(Button, { ...action, variant: "text" }, `${action.label}`)) })
19897
19916
  ] });
19898
19917
  }
19918
+ var bannerShadow = "0px 2px 4px rgba(53, 53, 53, 0.08)";
19899
19919
  var typeStyles2 = {
19900
19920
  error: {
19901
19921
  icon: "xCircle",
@@ -28818,7 +28838,8 @@ function TabImpl(props) {
28818
28838
  hoverStyles: hoverStyles4,
28819
28839
  disabledStyles: disabledStyles3,
28820
28840
  activeHoverStyles,
28821
- aiStyles
28841
+ aiStyles,
28842
+ activeAiStyles
28822
28843
  } = useMemo56(() => getTabStyles(), []);
28823
28844
  const uniqueValue = uniqueTabValue(tab);
28824
28845
  const tid = useTestIds(others);
@@ -28832,9 +28853,10 @@ function TabImpl(props) {
28832
28853
  ...others,
28833
28854
  ...trussProps129({
28834
28855
  ...baseStyles4,
28835
- // Only tints the label while the tab is unselected; selected keeps its own darker treatment.
28836
28856
  ...aiMode && aiStyles,
28837
28857
  ...active && activeStyles3,
28858
+ // After `activeStyles` so the selected AI tab stays purple, but before `disabledStyles` so disabled still wins.
28859
+ ...active && aiMode && activeAiStyles,
28838
28860
  ...isDisabled && disabledStyles3,
28839
28861
  ...isHovered && hoverStyles4,
28840
28862
  ...isHovered && active && activeHoverStyles,
@@ -28926,6 +28948,11 @@ function getTabStyles() {
28926
28948
  "--color": maybeCssVar62("rgba(109, 40, 217, 1)" /* Purple700 */)
28927
28949
  }]
28928
28950
  },
28951
+ activeAiStyles: {
28952
+ color: ["color_var", {
28953
+ "--color": maybeCssVar62("rgba(91, 33, 182, 1)" /* Purple800 */)
28954
+ }]
28955
+ },
28929
28956
  focusRingStyles: {
28930
28957
  backgroundColor: "bgBlue50",
28931
28958
  boxShadow: "bshFocus"