@homebound/beam 3.42.3 → 3.43.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/Css.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "increment": 8,
3
3
  "breakpoints": {"ifPrint":"@media print","ifSm":"@media screen and (max-width: 599px)","ifMd":"@media screen and (min-width: 600px) and (max-width: 1024px)","ifSmOrMd":"@media screen and (max-width: 1024px)","ifMdAndUp":"@media screen and (min-width: 600px)","ifMdAndDown":"@media screen and (max-width: 1024px)","ifLg":"@media screen and (min-width: 1025px)","ifMdOrLg":"@media screen and (min-width: 600px)"},
4
4
  "typography": ["xs2","xs2Sb","xs","xsSb","sm","smSb","md","mdSb","lg","xl","xl2"],
5
- "tokens": {"ButtonCautionDisabledBg":"--b-button-caution-disabled-bg","ButtonCautionDisabledFg":"--b-button-caution-disabled-fg","ButtonDangerDisabledBg":"--b-button-danger-disabled-bg","ButtonDangerDisabledFg":"--b-button-danger-disabled-fg","ButtonGhostDisabledFg":"--b-button-ghost-disabled-fg","ButtonGhostFg":"--b-button-ghost-fg","ButtonPrimaryDisabledBg":"--b-button-primary-disabled-bg","ButtonPrimaryDisabledFg":"--b-button-primary-disabled-fg","ButtonTertiaryFg":"--b-button-tertiary-fg","ButtonTertiaryFgPressed":"--b-button-tertiary-fg-pressed","Danger":"--b-danger","DangerPressed":"--b-danger-pressed","EnvBrandDev":"--b-env-brand-dev","EnvBrandLocalProd":"--b-env-brand-local-prod","EnvBrandProd":"--b-env-brand-prod","EnvBrandQa":"--b-env-brand-qa","FieldBgDefault":"--b-field-bg-default","FieldBgDisabled":"--b-field-bg-disabled","FieldBgHover":"--b-field-bg-hover","FieldBorderDefault":"--b-field-border-default","FieldBorderError":"--b-field-border-error","FieldBorderFocus":"--b-field-border-focus","FieldBorderHover":"--b-field-border-hover","FieldTextDisabled":"--b-field-text-disabled","FocusRingInset":"--b-focus-ring-inset","FocusRingMuted":"--b-focus-ring-muted","ListRowBgHover":"--b-list-row-bg-hover","LoaderFill":"--b-loader-fill","LoaderSpinner":"--b-loader-spinner","LoaderTrack":"--b-loader-track","MenuItemBgHover":"--b-menu-item-bg-hover","NavItemBgActive":"--b-nav-item-bg-active","NavItemBgHover":"--b-nav-item-bg-hover","NavItemBgPressed":"--b-nav-item-bg-pressed","NavText":"--b-nav-text","NavTextActive":"--b-nav-text-active","NavTextDisabled":"--b-nav-text-disabled","NavTextFocusVisible":"--b-nav-text-focus-visible","NavTextPressed":"--b-nav-text-pressed","NeutralFillHoverStrong":"--b-neutral-fill-hover-strong","NeutralFillHoverSubtle":"--b-neutral-fill-hover-subtle","NeutralFillPressed":"--b-neutral-fill-pressed","NeutralSurfacePressed":"--b-neutral-surface-pressed","OnPrimary":"--b-on-primary","OnSurface":"--b-on-surface","OnSurfaceMuted":"--b-on-surface-muted","OnSurfaceSubtle":"--b-on-surface-subtle","PopoverSurface":"--b-popover-surface","Primary":"--b-primary","PrimaryHover":"--b-primary-hover","PrimaryPressed":"--b-primary-pressed","Scrim":"--b-scrim","SelectionIndicator":"--b-selection-indicator","StatusSuccessFg":"--b-status-success-fg","Surface":"--b-surface","SurfaceSeparator":"--b-surface-separator","SurfaceSubtle":"--b-surface-subtle","TextDisabled":"--b-text-disabled","TextHelper":"--b-text-helper","TextLabel":"--b-text-label","TextLinkDefault":"--b-text-link-default","TextLinkDisabled":"--b-text-link-disabled","TextLinkHover":"--b-text-link-hover","TextLinkPressed":"--b-text-link-pressed","TextPlaceholder":"--b-text-placeholder","TextSelection":"--b-text-selection"},
5
+ "tokens": {"ButtonCautionDisabledBg":"--b-button-caution-disabled-bg","ButtonCautionDisabledFg":"--b-button-caution-disabled-fg","ButtonDangerDisabledBg":"--b-button-danger-disabled-bg","ButtonDangerDisabledFg":"--b-button-danger-disabled-fg","ButtonGhostDisabledFg":"--b-button-ghost-disabled-fg","ButtonGhostFg":"--b-button-ghost-fg","ButtonPrimaryDisabledBg":"--b-button-primary-disabled-bg","ButtonPrimaryDisabledFg":"--b-button-primary-disabled-fg","ButtonTertiaryFg":"--b-button-tertiary-fg","ButtonTertiaryFgPressed":"--b-button-tertiary-fg-pressed","Danger":"--b-danger","DangerPressed":"--b-danger-pressed","EnvBrandDev":"--b-env-brand-dev","EnvBrandLocalProd":"--b-env-brand-local-prod","EnvBrandProd":"--b-env-brand-prod","EnvBrandQa":"--b-env-brand-qa","FieldBgDefault":"--b-field-bg-default","FieldBgDisabled":"--b-field-bg-disabled","FieldBgHover":"--b-field-bg-hover","FieldBorderDefault":"--b-field-border-default","FieldBorderError":"--b-field-border-error","FieldBorderFocus":"--b-field-border-focus","FieldBorderHover":"--b-field-border-hover","FieldTextDisabled":"--b-field-text-disabled","FocusRingInset":"--b-focus-ring-inset","FocusRingMuted":"--b-focus-ring-muted","ListRowBgHover":"--b-list-row-bg-hover","LoaderFill":"--b-loader-fill","LoaderSpinner":"--b-loader-spinner","LoaderTrack":"--b-loader-track","MenuItemBgHover":"--b-menu-item-bg-hover","NavItemBgActive":"--b-nav-item-bg-active","NavItemBgHover":"--b-nav-item-bg-hover","NavItemBgPressed":"--b-nav-item-bg-pressed","NavText":"--b-nav-text","NavTextActive":"--b-nav-text-active","NavTextDisabled":"--b-nav-text-disabled","NavTextFocusVisible":"--b-nav-text-focus-visible","NavTextPressed":"--b-nav-text-pressed","NeutralFillHoverStrong":"--b-neutral-fill-hover-strong","NeutralFillHoverSubtle":"--b-neutral-fill-hover-subtle","NeutralFillPressed":"--b-neutral-fill-pressed","NeutralSurfacePressed":"--b-neutral-surface-pressed","OnPrimary":"--b-on-primary","OnSurface":"--b-on-surface","OnSurfaceMuted":"--b-on-surface-muted","OnSurfaceSubtle":"--b-on-surface-subtle","OnSurfaceDisabled":"--b-on-surface-disabled","OnSurfaceRaisedHover":"--b-on-surface-raised-hover","OnSurfaceRaisedPressed":"--b-on-surface-raised-pressed","PopoverSurface":"--b-popover-surface","Primary":"--b-primary","PrimaryHover":"--b-primary-hover","PrimaryPressed":"--b-primary-pressed","Scrim":"--b-scrim","SelectionIndicator":"--b-selection-indicator","StatusSuccessFg":"--b-status-success-fg","Surface":"--b-surface","SurfaceRaised":"--b-surface-raised","SurfaceRaisedHover":"--b-surface-raised-hover","SurfaceRaisedPressed":"--b-surface-raised-pressed","SurfaceDisabled":"--b-surface-disabled","SurfaceSeparator":"--b-surface-separator","SurfaceSubtle":"--b-surface-subtle","TextDisabled":"--b-text-disabled","TextHelper":"--b-text-helper","TextLabel":"--b-text-label","TextLinkDefault":"--b-text-link-default","TextLinkDisabled":"--b-text-link-disabled","TextLinkHover":"--b-text-link-hover","TextLinkPressed":"--b-text-link-pressed","TextPlaceholder":"--b-text-placeholder","TextSelection":"--b-text-selection"},
6
6
  "abbreviations": {
7
7
  "ba": {"kind":"static","defs":{"borderStyle":"solid","borderWidth":"1px"}},
8
8
  "bt": {"kind":"static","defs":{"borderTopStyle":"solid","borderTopWidth":"1px"}},
package/dist/index.cjs CHANGED
@@ -428,6 +428,9 @@ var Tokens = /* @__PURE__ */ ((Tokens2) => {
428
428
  Tokens2["OnSurface"] = "--b-on-surface";
429
429
  Tokens2["OnSurfaceMuted"] = "--b-on-surface-muted";
430
430
  Tokens2["OnSurfaceSubtle"] = "--b-on-surface-subtle";
431
+ Tokens2["OnSurfaceDisabled"] = "--b-on-surface-disabled";
432
+ Tokens2["OnSurfaceRaisedHover"] = "--b-on-surface-raised-hover";
433
+ Tokens2["OnSurfaceRaisedPressed"] = "--b-on-surface-raised-pressed";
431
434
  Tokens2["PopoverSurface"] = "--b-popover-surface";
432
435
  Tokens2["Primary"] = "--b-primary";
433
436
  Tokens2["PrimaryHover"] = "--b-primary-hover";
@@ -436,6 +439,10 @@ var Tokens = /* @__PURE__ */ ((Tokens2) => {
436
439
  Tokens2["SelectionIndicator"] = "--b-selection-indicator";
437
440
  Tokens2["StatusSuccessFg"] = "--b-status-success-fg";
438
441
  Tokens2["Surface"] = "--b-surface";
442
+ Tokens2["SurfaceRaised"] = "--b-surface-raised";
443
+ Tokens2["SurfaceRaisedHover"] = "--b-surface-raised-hover";
444
+ Tokens2["SurfaceRaisedPressed"] = "--b-surface-raised-pressed";
445
+ Tokens2["SurfaceDisabled"] = "--b-surface-disabled";
439
446
  Tokens2["SurfaceSeparator"] = "--b-surface-separator";
440
447
  Tokens2["SurfaceSubtle"] = "--b-surface-subtle";
441
448
  Tokens2["TextDisabled"] = "--b-text-disabled";
@@ -5827,7 +5834,8 @@ function IconButton(props) {
5827
5834
  download = false,
5828
5835
  forceFocusStyles = false,
5829
5836
  label,
5830
- preventTooltip = false
5837
+ preventTooltip = false,
5838
+ __storyState
5831
5839
  } = props;
5832
5840
  const isDisabled = !!disabled;
5833
5841
  const ariaProps = {
@@ -5838,20 +5846,25 @@ function IconButton(props) {
5838
5846
  };
5839
5847
  const ref = useGetRef(buttonRef);
5840
5848
  const {
5841
- buttonProps
5849
+ buttonProps,
5850
+ isPressed: isPressedFromEvents
5842
5851
  } = (0, import_react_aria2.useButton)({
5843
5852
  ...ariaProps,
5844
5853
  onPress: typeof onPress === "string" ? noop : onPress,
5845
5854
  elementType: typeof onPress === "string" ? "a" : "button"
5846
5855
  }, ref);
5856
+ const isPressed = __storyState?.pressed ?? isPressedFromEvents;
5857
+ const isPressing = isPressed || active;
5847
5858
  const {
5848
5859
  focusProps,
5849
- isFocusVisible
5860
+ isFocusVisible: isFocusVisibleFromEvents
5850
5861
  } = (0, import_react_aria2.useFocusRing)(ariaProps);
5851
5862
  const {
5852
5863
  hoverProps,
5853
- isHovered
5864
+ isHovered: isHoveredFromEvents
5854
5865
  } = (0, import_react_aria2.useHover)(ariaProps);
5866
+ const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
5867
+ const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
5855
5868
  const testIds = useTestIds(props, icon);
5856
5869
  const isCircle = variant === "circle";
5857
5870
  const isOutline = variant === "outline";
@@ -5868,7 +5881,7 @@ function IconButton(props) {
5868
5881
  ...base,
5869
5882
  ...isHovered && hover,
5870
5883
  ...(isFocusVisible || forceFocusStyles) && focus,
5871
- ...active && pressed,
5884
+ ...isPressing && pressed,
5872
5885
  ...isDisabled && iconButtonStylesDisabled,
5873
5886
  ...bgColor && {
5874
5887
  backgroundColor: ["bgColor_var", {
@@ -5876,7 +5889,7 @@ function IconButton(props) {
5876
5889
  }]
5877
5890
  }
5878
5891
  };
5879
- }, [isHovered, isFocusVisible, isDisabled, compact, isCircle, isOutline, active, bgColor, forceFocusStyles]);
5892
+ }, [isHovered, isFocusVisible, isDisabled, compact, isCircle, isOutline, isPressing, bgColor, forceFocusStyles]);
5880
5893
  const iconColor = isCircle ? circleIconColor : defaultIconColor;
5881
5894
  const buttonAttrs = {
5882
5895
  ...testIds,
@@ -5887,7 +5900,7 @@ function IconButton(props) {
5887
5900
  ...(0, import_runtime9.mergeProps)(typeof onPress === "string" ? navLink : void 0, void 0, styles),
5888
5901
  "aria-label": label
5889
5902
  };
5890
- const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { icon, color: color || (isDisabled ? "--b-text-disabled" /* TextDisabled */ : isCircle && (isHovered || active || isFocusVisible) ? defaultIconColor : iconColor), bgColor, inc: compact ? 2 : isCircle ? 2.5 : inc });
5903
+ const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { icon, color: color || (isDisabled ? "--b-on-surface-disabled" /* OnSurfaceDisabled */ : isOutline && isPressing ? "--b-on-surface-raised-pressed" /* OnSurfaceRaisedPressed */ : isOutline && isHovered ? "--b-on-surface-raised-hover" /* OnSurfaceRaisedHover */ : isCircle && (isHovered || active || isFocusVisible) ? defaultIconColor : iconColor), bgColor, inc: compact ? 2 : isCircle ? 2.5 : inc });
5891
5904
  return maybeTooltip({
5892
5905
  title: resolveTooltip(disabled ?? (preventTooltip ? void 0 : label), tooltip),
5893
5906
  placement: "top",
@@ -5908,7 +5921,10 @@ var iconButtonStylesReset = {
5908
5921
  transition: "transition"
5909
5922
  };
5910
5923
  var iconButtonStylesDisabled = {
5911
- cursor: "cursorNotAllowed"
5924
+ cursor: "cursorNotAllowed",
5925
+ backgroundColor: ["bgColor_var", {
5926
+ "--backgroundColor": "var(--b-surface-disabled)"
5927
+ }]
5912
5928
  };
5913
5929
  var variantStyles = {
5914
5930
  default: {
@@ -5983,26 +5999,28 @@ var variantStyles = {
5983
5999
  borderRadius: "br8",
5984
6000
  width: "w_42px",
5985
6001
  height: "h_40px",
5986
- backgroundColor: ["bgColor_var", {
5987
- "--backgroundColor": "var(--b-surface)"
5988
- }],
5989
6002
  borderColor: "bcGray300",
5990
6003
  borderStyle: "bss",
5991
6004
  borderWidth: "bw1",
5992
6005
  display: "df",
5993
6006
  justifyContent: "jcc",
5994
- alignItems: "aic"
6007
+ alignItems: "aic",
6008
+ backgroundColor: ["bgColor_var", {
6009
+ "--backgroundColor": "var(--b-surface-raised)"
6010
+ }]
5995
6011
  },
5996
6012
  hover: {
5997
6013
  backgroundColor: ["bgColor_var", {
5998
- "--backgroundColor": "var(--b-neutral-fill-hover-strong)"
6014
+ "--backgroundColor": "var(--b-surface-raised-hover)"
5999
6015
  }]
6000
6016
  },
6001
6017
  focus: {
6002
6018
  boxShadow: "bshFocus"
6003
6019
  },
6004
6020
  pressed: {
6005
- backgroundColor: "bgGray200"
6021
+ backgroundColor: ["bgColor_var", {
6022
+ "--backgroundColor": "var(--b-surface-raised-pressed)"
6023
+ }]
6006
6024
  }
6007
6025
  }
6008
6026
  };
@@ -6947,7 +6965,7 @@ var ColumnStates = class {
6947
6965
  }
6948
6966
  setVisibleColumns(ids) {
6949
6967
  for (const cs of this.map.values()) {
6950
- cs.setVisible(ids.includes(cs.column.id));
6968
+ cs.setVisible(cs.column.isLayoutGutter ? true : ids.includes(cs.column.id));
6951
6969
  }
6952
6970
  }
6953
6971
  loadExpanded(storageKey) {
@@ -23568,7 +23586,9 @@ function Navbar(props) {
23568
23586
  } = useContentOverflow(!sm);
23569
23587
  const showMobile = sm || overflows;
23570
23588
  return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(ContrastScope, { children: /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("nav", { ...(0, import_runtime100.trussProps)({
23571
- backgroundColor: "bgGray800",
23589
+ backgroundColor: ["bgColor_var", {
23590
+ "--backgroundColor": "var(--b-surface-raised)"
23591
+ }],
23572
23592
  flexShrink: "fs0",
23573
23593
  display: "df",
23574
23594
  alignItems: "aic",