@homebound/beam 2.382.0 → 2.383.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.cjs CHANGED
@@ -6874,7 +6874,7 @@ function NavLink(props) {
6874
6874
  const { buttonProps, isPressed } = (0, import_react_aria7.useButton)({ ...ariaProps, elementType: href ? "a" : "button" }, ref);
6875
6875
  const { hoverProps, isHovered } = (0, import_react_aria7.useHover)({ isDisabled });
6876
6876
  const { isFocusVisible, focusProps } = (0, import_react_aria7.useFocusRing)(ariaProps);
6877
- const { baseStyles: baseStyles4, activeStyles: activeStyles2, focusRingStyles: focusRingStyles2, hoverStyles: hoverStyles3, disabledStyles: disabledStyles3, pressedStyles: pressedStyles3 } = (0, import_react21.useMemo)(
6877
+ const { baseStyles: baseStyles4, activeStyles: activeStyles3, focusRingStyles: focusRingStyles2, hoverStyles: hoverStyles4, disabledStyles: disabledStyles3, pressedStyles: pressedStyles3 } = (0, import_react21.useMemo)(
6878
6878
  () => getNavLinkStyles(variant, contrast),
6879
6879
  [variant, contrast]
6880
6880
  );
@@ -6887,10 +6887,10 @@ function NavLink(props) {
6887
6887
  "aria-current": active ? "page" : void 0,
6888
6888
  css: {
6889
6889
  ...baseStyles4,
6890
- ...active && activeStyles2,
6890
+ ...active && activeStyles3,
6891
6891
  ...isDisabled && disabledStyles3,
6892
6892
  ...isFocusVisible && focusRingStyles2,
6893
- ...isHovered && hoverStyles3,
6893
+ ...isHovered && hoverStyles4,
6894
6894
  ...isPressed && pressedStyles3
6895
6895
  }
6896
6896
  };
@@ -7086,7 +7086,7 @@ function Button(props) {
7086
7086
  );
7087
7087
  const { isFocusVisible, focusProps } = (0, import_react_aria9.useFocusRing)(ariaProps);
7088
7088
  const { hoverProps, isHovered } = (0, import_react_aria9.useHover)(ariaProps);
7089
- const { baseStyles: baseStyles4, hoverStyles: hoverStyles3, disabledStyles: disabledStyles3, pressedStyles: pressedStyles3, focusStyles: focusStyles2 } = (0, import_react23.useMemo)(
7089
+ const { baseStyles: baseStyles4, hoverStyles: hoverStyles4, disabledStyles: disabledStyles3, pressedStyles: pressedStyles3, focusStyles: focusStyles2 } = (0, import_react23.useMemo)(
7090
7090
  () => getButtonStyles(variant, size, contrast),
7091
7091
  [variant, size, contrast]
7092
7092
  );
@@ -7104,7 +7104,7 @@ function Button(props) {
7104
7104
  css: {
7105
7105
  ...Css.buttonBase.tt("inherit").$,
7106
7106
  ...baseStyles4,
7107
- ...isHovered && !isPressed ? hoverStyles3 : {},
7107
+ ...isHovered && !isPressed ? hoverStyles4 : {},
7108
7108
  ...isPressed ? pressedStyles3 : {},
7109
7109
  ...isDisabled || asyncInProgress ? { ...disabledStyles3, ...Css.cursorNotAllowed.$ } : {},
7110
7110
  ...isFocusVisible || forceFocusStyles ? focusStyles2 : {}
@@ -14028,7 +14028,7 @@ var variantStyles2 = {
14028
14028
 
14029
14029
  // src/components/BeamContext.tsx
14030
14030
  var import_react91 = require("react");
14031
- var import_react_aria43 = require("react-aria");
14031
+ var import_react_aria44 = require("react-aria");
14032
14032
 
14033
14033
  // src/components/Modal/Modal.tsx
14034
14034
  var import_utils71 = require("@react-aria/utils");
@@ -14364,6 +14364,7 @@ function SuperDrawer() {
14364
14364
  // src/components/Layout/FormPageLayout.tsx
14365
14365
  var import_mobx_react20 = require("mobx-react");
14366
14366
  var import_react84 = __toESM(require("react"), 1);
14367
+ var import_react_aria43 = require("react-aria");
14367
14368
 
14368
14369
  // src/forms/BoundCheckboxField.tsx
14369
14370
  var import_mobx_react2 = require("mobx-react");
@@ -15484,6 +15485,15 @@ var headerHeightPx = 120;
15484
15485
  function FormPageLayoutComponent(props) {
15485
15486
  const { formSections, formState } = props;
15486
15487
  const tids = useTestIds(props, "formPageLayout");
15488
+ const sectionsWithRefs = (0, import_react84.useMemo)(
15489
+ () => formSections.map((section, id) => ({
15490
+ section,
15491
+ ref: (0, import_react84.createRef)(),
15492
+ // Unique key for each section to use in the observer
15493
+ sectionKey: `section-${section.title ?? id}`
15494
+ })),
15495
+ [formSections]
15496
+ );
15487
15497
  const gridColumns = "minMax(0, auto) minMax(100px, 250px) minMax(350px, 1000px) minMax(min-content, 300px) minMax(0, auto)";
15488
15498
  return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
15489
15499
  "div",
@@ -15492,8 +15502,8 @@ function FormPageLayoutComponent(props) {
15492
15502
  ...tids,
15493
15503
  children: [
15494
15504
  /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(PageHeader, { ...props, ...tids.pageHeader }),
15495
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(LeftNav, { formSections, ...tids.nav }),
15496
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(FormSections, { formSections, formState, ...tids }),
15505
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(LeftNav, { sectionsWithRefs, ...tids }),
15506
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(FormSections, { sectionsWithRefs, formState, ...tids }),
15497
15507
  /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(SidebarContent, {})
15498
15508
  ]
15499
15509
  }
@@ -15546,14 +15556,16 @@ function PageHeader(props) {
15546
15556
  ] }) });
15547
15557
  }
15548
15558
  function FormSections(props) {
15549
- const { formSections, formState } = props;
15559
+ const { sectionsWithRefs, formState } = props;
15550
15560
  const tids = useTestIds(props);
15551
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("article", { css: Css.gr(2).gc("3 / 4").$, children: formSections.map((section, i) => (
15561
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("article", { css: Css.gr(2).gc("3 / 4").$, children: sectionsWithRefs.map(({ section, ref, sectionKey }, i) => (
15552
15562
  // Subgrid here allows for icon placement to the left of the section content
15553
15563
  /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
15554
15564
  "section",
15555
15565
  {
15556
- css: Css.dg.gtc("50px 1fr").gtr("auto").mb3.$,
15566
+ id: sectionKey,
15567
+ ref,
15568
+ css: Css.dg.gtc("50px 1fr").gtr("auto").mb3.add("scrollMarginTop", `${headerHeightPx}px`).$,
15557
15569
  ...tids.formSection,
15558
15570
  children: [
15559
15571
  /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { css: Css.gc(1).$, children: section.icon && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Icon, { icon: section.icon, inc: 3.5 }) }),
@@ -15563,17 +15575,93 @@ function FormSections(props) {
15563
15575
  ] })
15564
15576
  ]
15565
15577
  },
15566
- `section-${section.title ?? i}`
15578
+ sectionKey
15567
15579
  )
15568
15580
  )) });
15569
15581
  }
15570
15582
  function LeftNav(props) {
15583
+ const { sectionsWithRefs } = props;
15571
15584
  const tids = useTestIds(props);
15572
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("aside", { css: Css.gr(2).gc("2 / 3").sticky.topPx(headerHeightPx).px3.df.fdc.gap1.$, ...tids });
15585
+ const sectionWithTitles = (0, import_react84.useMemo)(
15586
+ () => sectionsWithRefs.filter(({ section }) => !!section.title),
15587
+ [sectionsWithRefs]
15588
+ );
15589
+ const activeSection = useActiveSection(sectionWithTitles);
15590
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("aside", { css: Css.gr(2).gc("2 / 3").sticky.topPx(headerHeightPx).px3.df.fdc.gap1.$, ...tids.nav, children: sectionWithTitles.map((sectionWithRef) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
15591
+ SectionNavLink,
15592
+ {
15593
+ sectionWithRef,
15594
+ activeSection,
15595
+ ...tids
15596
+ },
15597
+ `nav-${sectionWithRef.sectionKey}`
15598
+ )) });
15599
+ }
15600
+ var activeStyles = Css.smBd.boxShadow(`inset 3px 0px 0 0px ${"rgba(37, 99, 235, 1)" /* Blue600 */}`).$;
15601
+ var hoverStyles2 = Css.bgBlue50.smBd.blue900.boxShadow(`inset 3px 0px 0 0px ${"rgba(30, 58, 138, 1)" /* Blue900 */}`).$;
15602
+ var defaultFocusRingStyles = Css.relative.z2.bshFocus.$;
15603
+ function SectionNavLink(props) {
15604
+ const { sectionWithRef, activeSection } = props;
15605
+ const { section, ref: sectionRef } = sectionWithRef;
15606
+ const active = activeSection === sectionWithRef.sectionKey;
15607
+ const handleNavClick = (0, import_react84.useCallback)(() => {
15608
+ sectionRef.current?.scrollIntoView({ behavior: "smooth", block: "start" });
15609
+ }, [sectionRef]);
15610
+ const tids = useTestIds(props);
15611
+ const buttonRef = (0, import_react84.useRef)(null);
15612
+ const { buttonProps, isPressed } = (0, import_react_aria43.useButton)({ onPress: handleNavClick }, buttonRef);
15613
+ const { isFocusVisible, focusProps } = (0, import_react_aria43.useFocusRing)();
15614
+ const { hoverProps, isHovered } = useHover({});
15615
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
15616
+ "button",
15617
+ {
15618
+ ref: buttonRef,
15619
+ ...buttonProps,
15620
+ ...focusProps,
15621
+ ...hoverProps,
15622
+ css: {
15623
+ ...Css.buttonBase.wsn.tal.smMd.blue600.px2.py1.br0.h100.$,
15624
+ ...isFocusVisible ? defaultFocusRingStyles : {},
15625
+ ...active ? activeStyles : {},
15626
+ ...isPressed ? activeStyles : isHovered ? hoverStyles2 : {}
15627
+ },
15628
+ ...tids.sectionNavLink,
15629
+ children: section.title
15630
+ }
15631
+ );
15573
15632
  }
15574
15633
  function SidebarContent() {
15575
15634
  return null;
15576
15635
  }
15636
+ function useActiveSection(sectionsWithRefs) {
15637
+ const [activeSection, setActiveSection] = (0, import_react84.useState)(null);
15638
+ (0, import_react84.useEffect)(() => {
15639
+ if (!("IntersectionObserver" in window)) return;
15640
+ const observer2 = new IntersectionObserver(
15641
+ (entries) => {
15642
+ const sectionsInView = entries.filter((entry) => entry.isIntersecting).sort((a, b) => b.intersectionRatio - a.intersectionRatio);
15643
+ if (sectionsInView[0]) {
15644
+ setActiveSection(sectionsInView[0].target.id);
15645
+ }
15646
+ },
15647
+ // Threshold defines when the observer callback should be triggered, we may need to refine this based on more real word layouts
15648
+ { rootMargin: `-${headerHeightPx}px 0px 0px 0px`, threshold: 0.4 }
15649
+ );
15650
+ sectionsWithRefs.forEach(({ ref }) => {
15651
+ if (ref.current) {
15652
+ observer2.observe(ref.current);
15653
+ }
15654
+ });
15655
+ return () => {
15656
+ sectionsWithRefs.forEach(({ ref }) => {
15657
+ if (ref.current) {
15658
+ observer2.unobserve(ref.current);
15659
+ }
15660
+ });
15661
+ };
15662
+ }, [sectionsWithRefs]);
15663
+ return activeSection;
15664
+ }
15577
15665
 
15578
15666
  // src/components/Layout/FullBleed.tsx
15579
15667
  var import_react86 = require("react");
@@ -15832,7 +15920,7 @@ function BeamProvider({ children, ...presentationProps }) {
15832
15920
  };
15833
15921
  }, [modalBodyDiv, modalFooterDiv, modalHeaderDiv, sdHeaderDiv]);
15834
15922
  return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(BeamContext.Provider, { value: { ...context }, children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(PresentationProvider, { ...presentationProps, children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(RightPaneProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(SnackbarProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(ToastProvider, { children: [
15835
- /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_react_aria43.OverlayProvider, { children: [
15923
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_react_aria44.OverlayProvider, { children: [
15836
15924
  children,
15837
15925
  modalRef.current && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Modal, { ...modalRef.current })
15838
15926
  ] }),
@@ -15858,14 +15946,14 @@ function useBeamContext() {
15858
15946
 
15859
15947
  // src/components/ButtonDatePicker.tsx
15860
15948
  var import_react92 = require("react");
15861
- var import_react_aria44 = require("react-aria");
15949
+ var import_react_aria45 = require("react-aria");
15862
15950
  var import_react_stately17 = require("react-stately");
15863
15951
  var import_jsx_runtime127 = require("@emotion/react/jsx-runtime");
15864
15952
  function ButtonDatePicker(props) {
15865
15953
  const { defaultOpen, disabled, trigger, onSelect, ...datePickerProps } = props;
15866
15954
  const state = (0, import_react_stately17.useMenuTriggerState)({ isOpen: defaultOpen });
15867
15955
  const buttonRef = (0, import_react92.useRef)(null);
15868
- const { menuTriggerProps, menuProps } = (0, import_react_aria44.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
15956
+ const { menuTriggerProps, menuProps } = (0, import_react_aria45.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
15869
15957
  const tid = useTestIds(
15870
15958
  props,
15871
15959
  isTextButton(trigger) ? defaultTestId(labelOr(trigger, "buttonDatePicker")) : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name
@@ -15885,7 +15973,7 @@ function ButtonDatePicker(props) {
15885
15973
 
15886
15974
  // src/components/ButtonGroup.tsx
15887
15975
  var import_react93 = require("react");
15888
- var import_react_aria45 = require("react-aria");
15976
+ var import_react_aria46 = require("react-aria");
15889
15977
  var import_jsx_runtime128 = (
15890
15978
  // Disable the button if the ButtonGroup is disabled or if the current button is disabled.
15891
15979
  require("@emotion/react/jsx-runtime")
@@ -15902,9 +15990,9 @@ function GroupButton(props) {
15902
15990
  const { icon, iconInc, iconColor, text, active, onClick: onPress, disabled, size, tooltip, ...otherProps } = props;
15903
15991
  const ariaProps = { onPress, isDisabled: !!disabled, ...otherProps };
15904
15992
  const ref = (0, import_react93.useRef)(null);
15905
- const { buttonProps, isPressed } = (0, import_react_aria45.useButton)(ariaProps, ref);
15906
- const { isFocusVisible, focusProps } = (0, import_react_aria45.useFocusRing)();
15907
- const { hoverProps, isHovered } = (0, import_react_aria45.useHover)(ariaProps);
15993
+ const { buttonProps, isPressed } = (0, import_react_aria46.useButton)(ariaProps, ref);
15994
+ const { isFocusVisible, focusProps } = (0, import_react_aria46.useFocusRing)();
15995
+ const { hoverProps, isHovered } = (0, import_react_aria46.useHover)(ariaProps);
15908
15996
  const tid = useTestIds(props);
15909
15997
  return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("span", { css: getButtonStyles2(), children: maybeTooltip({
15910
15998
  title: resolveTooltip(disabled, tooltip),
@@ -15919,9 +16007,9 @@ function GroupButton(props) {
15919
16007
  css: {
15920
16008
  ...Css.buttonBase.px2.br0.h100.$,
15921
16009
  "&:disabled": Css.gray400.cursorNotAllowed.bcGray300.$,
15922
- ...isFocusVisible ? defaultFocusRingStyles : {},
15923
- ...active ? activeStyles : {},
15924
- ...isPressed ? pressedStyles2 : isHovered ? hoverStyles2 : {},
16010
+ ...isFocusVisible ? defaultFocusRingStyles2 : {},
16011
+ ...active ? activeStyles2 : {},
16012
+ ...isPressed ? pressedStyles2 : isHovered ? hoverStyles3 : {},
15925
16013
  ...icon ? iconStyles2[size] : {}
15926
16014
  },
15927
16015
  ...tid[defaultTestId(typeof text === "string" && text || icon || "button")],
@@ -15934,9 +16022,9 @@ function GroupButton(props) {
15934
16022
  }) });
15935
16023
  }
15936
16024
  var pressedStyles2 = Css.bgGray200.$;
15937
- var activeStyles = Css.bgGray300.$;
15938
- var hoverStyles2 = Css.bgGray100.$;
15939
- var defaultFocusRingStyles = Css.relative.z2.bshFocus.$;
16025
+ var activeStyles2 = Css.bgGray300.$;
16026
+ var hoverStyles3 = Css.bgGray100.$;
16027
+ var defaultFocusRingStyles2 = Css.relative.z2.bshFocus.$;
15940
16028
  function getButtonStyles2() {
15941
16029
  return {
15942
16030
  ...Css.z1.bgWhite.bcGray300.bw1.ba.gray900.br0.oh.$,
@@ -15961,7 +16049,7 @@ var iconStyles2 = {
15961
16049
 
15962
16050
  // src/components/ButtonMenu.tsx
15963
16051
  var import_react94 = require("react");
15964
- var import_react_aria46 = require("react-aria");
16052
+ var import_react_aria47 = require("react-aria");
15965
16053
  var import_react_stately18 = require("react-stately");
15966
16054
  var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
15967
16055
  function ButtonMenu(props) {
@@ -15973,7 +16061,7 @@ function ButtonMenu(props) {
15973
16061
  }
15974
16062
  const state = (0, import_react_stately18.useMenuTriggerState)({ isOpen: defaultOpen });
15975
16063
  const buttonRef = (0, import_react94.useRef)(null);
15976
- const { menuTriggerProps, menuProps } = (0, import_react_aria46.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
16064
+ const { menuTriggerProps, menuProps } = (0, import_react_aria47.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
15977
16065
  const tid = useTestIds(
15978
16066
  props,
15979
16067
  isTextButton(trigger) ? labelOr(trigger, "buttonMenu") : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name
@@ -16234,12 +16322,12 @@ var gridCloneKey = "dndgrid-clone";
16234
16322
  var activeGridItemClass = "dndgrid-active";
16235
16323
 
16236
16324
  // src/components/DnDGrid/DnDGridItemHandle.tsx
16237
- var import_react_aria47 = require("react-aria");
16325
+ var import_react_aria48 = require("react-aria");
16238
16326
  var import_jsx_runtime132 = require("@emotion/react/jsx-runtime");
16239
16327
  function DnDGridItemHandle(props) {
16240
16328
  const { dragHandleProps, icon = "move", compact = false, color } = props;
16241
- const { focusProps, isFocusVisible } = (0, import_react_aria47.useFocusRing)();
16242
- const { hoverProps, isHovered } = (0, import_react_aria47.useHover)({});
16329
+ const { focusProps, isFocusVisible } = (0, import_react_aria48.useFocusRing)();
16330
+ const { hoverProps, isHovered } = (0, import_react_aria48.useHover)({});
16243
16331
  const tid = useTestIds(props, "dragHandle");
16244
16332
  const iconButtonNormal2 = Css.hPx(28).wPx(28).br8.bw2.$;
16245
16333
  const iconButtonCompact2 = Css.hPx(18).wPx(18).br4.bw1.$;
@@ -16251,7 +16339,7 @@ function DnDGridItemHandle(props) {
16251
16339
  ...Css.cursor("grab").bcTransparent.bss.bgTransparent.outline0.dif.aic.jcc.transition.if(isFocusVisible).bcBlue700.$,
16252
16340
  ...isHovered && Css.bgGray200.$
16253
16341
  },
16254
- ...(0, import_react_aria47.mergeProps)(dragHandleProps, focusProps, hoverProps),
16342
+ ...(0, import_react_aria48.mergeProps)(dragHandleProps, focusProps, hoverProps),
16255
16343
  ...tid,
16256
16344
  children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Icon, { icon, inc: compact ? 2 : void 0, color })
16257
16345
  }
@@ -17230,7 +17318,7 @@ var snackbarId = 1;
17230
17318
 
17231
17319
  // src/components/Stepper.tsx
17232
17320
  var import_react106 = require("react");
17233
- var import_react_aria48 = require("react-aria");
17321
+ var import_react_aria49 = require("react-aria");
17234
17322
  var import_jsx_runtime152 = require("@emotion/react/jsx-runtime");
17235
17323
  function Stepper(props) {
17236
17324
  const { steps, currentStep, onChange } = props;
@@ -17274,9 +17362,9 @@ function StepButton(props) {
17274
17362
  const { label, disabled, state, isCurrent, onClick } = props;
17275
17363
  const ariaProps = { onPress: onClick, isDisabled: disabled };
17276
17364
  const ref = (0, import_react106.useRef)(null);
17277
- const { buttonProps, isPressed } = (0, import_react_aria48.useButton)(ariaProps, ref);
17278
- const { isFocusVisible, focusProps } = (0, import_react_aria48.useFocusRing)();
17279
- const { hoverProps, isHovered } = (0, import_react_aria48.useHover)(ariaProps);
17365
+ const { buttonProps, isPressed } = (0, import_react_aria49.useButton)(ariaProps, ref);
17366
+ const { isFocusVisible, focusProps } = (0, import_react_aria49.useFocusRing)();
17367
+ const { hoverProps, isHovered } = (0, import_react_aria49.useHover)(ariaProps);
17280
17368
  const focusRingStyles2 = state === "error" ? Css.bshDanger.$ : Css.bshFocus.$;
17281
17369
  const tid = useTestIds(props, "stepButton");
17282
17370
  return /* @__PURE__ */ (0, import_jsx_runtime152.jsxs)(
@@ -17563,7 +17651,7 @@ var SuperDrawerContent = ({ children, actions }) => {
17563
17651
  // src/components/Tabs.tsx
17564
17652
  var import_change_case7 = require("change-case");
17565
17653
  var import_react108 = require("react");
17566
- var import_react_aria49 = require("react-aria");
17654
+ var import_react_aria50 = require("react-aria");
17567
17655
  var import_react_router2 = require("react-router");
17568
17656
  var import_react_router_dom5 = require("react-router-dom");
17569
17657
  var import_jsx_runtime157 = require("@emotion/react/jsx-runtime");
@@ -17606,7 +17694,7 @@ function Tabs(props) {
17606
17694
  const selected = isRouteTabs(props) ? uniqueTabValue(
17607
17695
  props.tabs.find((t) => !!(0, import_react_router2.matchPath)(location.pathname, { path: t.path, exact: true })) || props.tabs[0]
17608
17696
  ) : props.selected;
17609
- const { isFocusVisible, focusProps } = (0, import_react_aria49.useFocusRing)();
17697
+ const { isFocusVisible, focusProps } = (0, import_react_aria50.useFocusRing)();
17610
17698
  const tid = useTestIds(others, "tabs");
17611
17699
  const [active, setActive] = (0, import_react108.useState)(selected);
17612
17700
  const ref = (0, import_react108.useRef)(null);
@@ -17651,8 +17739,8 @@ function TabImpl(props) {
17651
17739
  const { tab, onClick, active, onKeyUp, onBlur, focusProps, isFocusVisible = false, ...others } = props;
17652
17740
  const { disabled = false, name: label, icon, endAdornment } = tab;
17653
17741
  const isDisabled = !!disabled;
17654
- const { hoverProps, isHovered } = (0, import_react_aria49.useHover)({ isDisabled });
17655
- const { baseStyles: baseStyles4, activeStyles: activeStyles2, focusRingStyles: focusRingStyles2, hoverStyles: hoverStyles3, disabledStyles: disabledStyles3, activeHoverStyles } = (0, import_react108.useMemo)(
17742
+ const { hoverProps, isHovered } = (0, import_react_aria50.useHover)({ isDisabled });
17743
+ const { baseStyles: baseStyles4, activeStyles: activeStyles3, focusRingStyles: focusRingStyles2, hoverStyles: hoverStyles4, disabledStyles: disabledStyles3, activeHoverStyles } = (0, import_react108.useMemo)(
17656
17744
  () => getTabStyles(),
17657
17745
  []
17658
17746
  );
@@ -17667,14 +17755,14 @@ function TabImpl(props) {
17667
17755
  ...others,
17668
17756
  css: {
17669
17757
  ...baseStyles4,
17670
- ...active && activeStyles2,
17758
+ ...active && activeStyles3,
17671
17759
  ...isDisabled && disabledStyles3,
17672
- ...isHovered && hoverStyles3,
17760
+ ...isHovered && hoverStyles4,
17673
17761
  ...isHovered && active && activeHoverStyles,
17674
17762
  ...isFocusVisible && active && focusRingStyles2
17675
17763
  }
17676
17764
  };
17677
- const interactiveProps = (0, import_react_aria49.mergeProps)(focusProps, hoverProps, {
17765
+ const interactiveProps = (0, import_react_aria50.mergeProps)(focusProps, hoverProps, {
17678
17766
  onKeyUp,
17679
17767
  onBlur,
17680
17768
  ...isRouteTab(tab) ? {} : { onClick: () => onClick(tab.value) }