@homebound/beam 3.61.0 → 3.62.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.d.cts CHANGED
@@ -9854,6 +9854,11 @@ type StepperTabProps = {
9854
9854
  disabled?: boolean;
9855
9855
  /** Collapses the tab down to its colored bottom border only, hiding the label — for the mobile view */
9856
9856
  collapsed?: boolean;
9857
+ /** Storybook-only visual state overrides for snapshotting pseudo-interactions. */
9858
+ __storyState?: {
9859
+ hovered?: boolean;
9860
+ focusVisible?: boolean;
9861
+ };
9857
9862
  };
9858
9863
  declare function StepperTab(props: StepperTabProps): JSX.Element;
9859
9864
 
package/dist/index.d.ts CHANGED
@@ -9854,6 +9854,11 @@ type StepperTabProps = {
9854
9854
  disabled?: boolean;
9855
9855
  /** Collapses the tab down to its colored bottom border only, hiding the label — for the mobile view */
9856
9856
  collapsed?: boolean;
9857
+ /** Storybook-only visual state overrides for snapshotting pseudo-interactions. */
9858
+ __storyState?: {
9859
+ hovered?: boolean;
9860
+ focusVisible?: boolean;
9861
+ };
9857
9862
  };
9858
9863
  declare function StepperTab(props: StepperTabProps): JSX.Element;
9859
9864
 
package/dist/index.js CHANGED
@@ -24387,7 +24387,8 @@ function StepperTab(props) {
24387
24387
  completed,
24388
24388
  onClick,
24389
24389
  disabled = false,
24390
- collapsed = false
24390
+ collapsed = false,
24391
+ __storyState
24391
24392
  } = props;
24392
24393
  const ariaProps = {
24393
24394
  onPress: () => onClick(value),
@@ -24398,13 +24399,15 @@ function StepperTab(props) {
24398
24399
  buttonProps
24399
24400
  } = useButton13(ariaProps, ref);
24400
24401
  const {
24401
- isFocusVisible,
24402
+ isFocusVisible: isFocusVisibleFromEvents,
24402
24403
  focusProps
24403
24404
  } = useFocusRing18();
24404
24405
  const {
24405
24406
  hoverProps,
24406
- isHovered
24407
+ isHovered: isHoveredFromEvents
24407
24408
  } = useHover22(ariaProps);
24409
+ const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
24410
+ const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
24408
24411
  const tid = useTestIds(props, "stepperTab");
24409
24412
  return /* @__PURE__ */ jsxs99("button", { ref, ...mergeProps30(buttonProps, focusProps, hoverProps), "aria-label": label, ...trussProps104({
24410
24413
  ...stepperTabStyles.baseStyles,
@@ -24458,7 +24461,7 @@ function getCollapsedStyles(active, completed) {
24458
24461
  paddingTop: "pt0",
24459
24462
  paddingBottom: "pb0"
24460
24463
  },
24461
- ...completed && !active ? {
24464
+ ...active || completed ? {
24462
24465
  borderColor: "bcBlue600"
24463
24466
  } : {
24464
24467
  borderColor: "bcGray300"