@homebound/beam 2.414.0-alpha.1 → 2.414.0-alpha.3

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
@@ -4769,6 +4769,8 @@ interface ButtonProps extends BeamButtonProps, BeamFocusableProps {
4769
4769
  contrast?: boolean;
4770
4770
  /** Additional text to further customize button during an async request is in progress. */
4771
4771
  labelInFlight?: string;
4772
+ /** Shows pressed/active styles (useful when a menu is open) */
4773
+ active?: boolean;
4772
4774
  }
4773
4775
  declare function Button(props: ButtonProps): _emotion_react_jsx_runtime.JSX.Element;
4774
4776
  type ButtonSize = "sm" | "md" | "lg";
package/dist/index.d.ts CHANGED
@@ -4769,6 +4769,8 @@ interface ButtonProps extends BeamButtonProps, BeamFocusableProps {
4769
4769
  contrast?: boolean;
4770
4770
  /** Additional text to further customize button during an async request is in progress. */
4771
4771
  labelInFlight?: string;
4772
+ /** Shows pressed/active styles (useful when a menu is open) */
4773
+ active?: boolean;
4772
4774
  }
4773
4775
  declare function Button(props: ButtonProps): _emotion_react_jsx_runtime.JSX.Element;
4774
4776
  type ButtonSize = "sm" | "md" | "lg";
package/dist/index.js CHANGED
@@ -6684,6 +6684,7 @@ function Button(props) {
6684
6684
  download,
6685
6685
  contrast = false,
6686
6686
  forceFocusStyles = false,
6687
+ active = false,
6687
6688
  labelInFlight,
6688
6689
  ...otherProps
6689
6690
  } = props;
@@ -6737,8 +6738,8 @@ function Button(props) {
6737
6738
  css: {
6738
6739
  ...Css.buttonBase.tt("inherit").$,
6739
6740
  ...baseStyles5,
6740
- ...isHovered && !isPressed ? hoverStyles4 : {},
6741
- ...isPressed ? pressedStyles3 : {},
6741
+ ...isHovered && !isPressed && !active ? hoverStyles4 : {},
6742
+ ...isPressed || active ? pressedStyles3 : {},
6742
6743
  ...isDisabled || asyncInProgress ? { ...disabledStyles4, ...Css.cursorNotAllowed.$ } : {},
6743
6744
  ...isFocusVisible || forceFocusStyles ? focusStyles2 : {}
6744
6745
  },
@@ -6778,7 +6779,7 @@ var variantStyles = (contrast) => ({
6778
6779
  secondaryBlack: {
6779
6780
  baseStyles: Css.bgWhite.bcGray300.bw1.ba.gray900.$,
6780
6781
  hoverStyles: Css.bgGray100.if(contrast).bgGray700.white.$,
6781
- pressedStyles: Css.gray900.if(contrast).bgWhite.gray900.$,
6782
+ pressedStyles: Css.bgGray100.gray900.if(contrast).bgWhite.gray900.$,
6782
6783
  disabledStyles: Css.gray400.if(contrast).gray700.$,
6783
6784
  focusStyles: Css.boxShadow(`0px 0px 0px 2px ${"rgba(255,255,255,1)" /* White */}, 0px 0px 0px 4px ${"rgba(36, 36, 36, 1)" /* Gray900 */}`).if(contrast).boxShadow(`0px 0px 0px 2px ${"rgba(175, 175, 175, 1)" /* Gray500 */}`).$
6784
6785
  },
@@ -6835,7 +6836,7 @@ var variantStyles = (contrast) => ({
6835
6836
  });
6836
6837
  var sizeStyles = {
6837
6838
  sm: Css.hPx(32).pxPx(12).$,
6838
- md: Css.hPx(40).px1.$,
6839
+ md: Css.hPx(40).px2.$,
6839
6840
  lg: Css.hPx(48).px3.$
6840
6841
  };
6841
6842
  var iconStyles = {
@@ -8490,16 +8491,14 @@ function TextFieldBase(props) {
8490
8491
  ...labelStyle === "hidden" && Css.mhPx(fieldHeight - maybeSmaller).if(compact).mhPx(compactFieldHeight - maybeSmaller).$
8491
8492
  },
8492
8493
  input: {
8493
- ...Css.w100.mw0.outline0.fg1.bgColor(bgColor).$,
8494
+ ...Css.w100.mw0.outline0.fg1.bgTransparent.$,
8494
8495
  // Not using Truss's inline `if` statement here because `addIn` properties do not respect the if statement.
8495
8496
  ...contrast && !inputStylePalette && Css.addIn("&::selection", Css.bgGray800.$).$,
8496
- // Make the background transparent when highlighting the field on hover
8497
- ...borderOnHover && Css.bgTransparent.$,
8498
8497
  // For "multiline" fields we add top and bottom padding of 7px for compact, or 11px for non-compact, to properly match the height of the single line fields
8499
8498
  ...multiline ? Css.br4.pyPx(compact ? 7 : textFieldBaseMultilineTopPadding).add("resize", "none").$ : Css.truncate.$
8500
8499
  },
8501
8500
  hover: Css.bgColor(hoverBgColor).if(contrast).bcGray600.$,
8502
- focus: Css.bcBlue700.if(contrast).bcBlue500.if(borderOnHover).bgColor(hoverBgColor).bcBlue500.$,
8501
+ focus: Css.bcBlue700.bgColor(hoverBgColor).if(contrast).bcBlue500.if(borderOnHover).bcBlue500.$,
8503
8502
  disabled: visuallyDisabled ? Css.cursorNotAllowed.gray600.bgColor(disabledBgColor).if(contrast).gray500.$ : Css.cursorNotAllowed.$,
8504
8503
  error: Css.bcRed600.if(contrast).bcRed400.$
8505
8504
  };
@@ -16754,10 +16753,11 @@ function FilterDropdownMenu(props) {
16754
16753
  ] }),
16755
16754
  variant: "secondaryBlack",
16756
16755
  onClick: () => setIsOpen(!isOpen),
16756
+ active: isOpen,
16757
16757
  ...testId.button
16758
16758
  }
16759
16759
  ),
16760
- isOpen && /* @__PURE__ */ jsxs68("div", { css: Css.df.aic.fww.gap1.order(1).$, children: [
16760
+ isOpen && /* @__PURE__ */ jsxs68("div", { css: Css.df.aic.fww.gap1.w100.$, children: [
16761
16761
  groupBy && /* @__PURE__ */ jsx140(
16762
16762
  SelectField,
16763
16763
  {