@homebound/beam 3.32.0 → 3.33.1

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
@@ -7766,7 +7766,7 @@ var import_react70 = require("react");
7766
7766
 
7767
7767
  // src/inputs/Autocomplete.tsx
7768
7768
  var import_react53 = require("react");
7769
- var import_react_aria28 = require("react-aria");
7769
+ var import_react_aria29 = require("react-aria");
7770
7770
  var import_react_stately7 = require("react-stately");
7771
7771
 
7772
7772
  // src/components/internal/DatePicker/DatePicker.tsx
@@ -8136,7 +8136,7 @@ function DateRangePicker(props) {
8136
8136
  // src/components/internal/Menu.tsx
8137
8137
  var import_change_case3 = require("change-case");
8138
8138
  var import_react33 = require("react");
8139
- var import_react_aria9 = require("react-aria");
8139
+ var import_react_aria10 = require("react-aria");
8140
8140
  var import_react_stately2 = require("react-stately");
8141
8141
 
8142
8142
  // src/components/internal/MenuSection.tsx
@@ -8180,8 +8180,8 @@ function MenuSectionImpl(props) {
8180
8180
  }
8181
8181
 
8182
8182
  // src/inputs/internal/MenuSearchField.tsx
8183
- var import_textfield = require("@react-aria/textfield");
8184
8183
  var import_react32 = require("react");
8184
+ var import_react_aria9 = require("react-aria");
8185
8185
 
8186
8186
  // src/inputs/TextFieldBase.tsx
8187
8187
  var import_react31 = require("react");
@@ -9942,7 +9942,7 @@ var import_jsx_runtime33 = require("react/jsx-runtime");
9942
9942
  function MenuSearchField(props) {
9943
9943
  const tid = useTestIds(props);
9944
9944
  const inputRef = (0, import_react32.useRef)(null);
9945
- const { labelProps, inputProps } = (0, import_textfield.useTextField)({ ...props }, inputRef);
9945
+ const { labelProps, inputProps } = (0, import_react_aria9.useTextField)({ ...props }, inputRef);
9946
9946
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9947
9947
  TextFieldBase,
9948
9948
  {
@@ -9979,7 +9979,7 @@ function Menu(props) {
9979
9979
  const [search, setSearch] = (0, import_react33.useState)(void 0);
9980
9980
  const {
9981
9981
  contains
9982
- } = (0, import_react_aria9.useFilter)({
9982
+ } = (0, import_react_aria10.useFilter)({
9983
9983
  sensitivity: "base"
9984
9984
  });
9985
9985
  const filteredTree = (0, import_react33.useMemo)(() => {
@@ -10028,7 +10028,7 @@ function Menu(props) {
10028
10028
  const menuRef = (0, import_react33.useRef)(null);
10029
10029
  const {
10030
10030
  menuProps
10031
- } = (0, import_react_aria9.useMenu)({
10031
+ } = (0, import_react_aria10.useMenu)({
10032
10032
  ...ariaMenuProps,
10033
10033
  autoFocus: searchable ? false : true
10034
10034
  }, state, menuRef);
@@ -10037,7 +10037,7 @@ function Menu(props) {
10037
10037
  label: "items",
10038
10038
  items
10039
10039
  }), [items]);
10040
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_aria9.FocusScope, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { ...(0, import_runtime24.trussProps)({
10040
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_aria10.FocusScope, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { ...(0, import_runtime24.trussProps)({
10041
10041
  // Using `max-height: inherit` allows us to take advantage of the height set on the overlay container,
10042
10042
  // which updates based on the available space for the overlay within the viewport
10043
10043
  ...{
@@ -10067,7 +10067,7 @@ function Menu(props) {
10067
10067
 
10068
10068
  // src/components/internal/MenuItem.tsx
10069
10069
  var import_react40 = require("react");
10070
- var import_react_aria16 = require("react-aria");
10070
+ var import_react_aria17 = require("react-aria");
10071
10071
  var import_react_router_dom3 = require("react-router-dom");
10072
10072
 
10073
10073
  // src/components/Avatar/Avatar.tsx
@@ -10219,7 +10219,7 @@ function nameToInitials(name) {
10219
10219
 
10220
10220
  // src/components/Avatar/AvatarButton.tsx
10221
10221
  var import_react35 = require("react");
10222
- var import_react_aria10 = require("react-aria");
10222
+ var import_react_aria11 = require("react-aria");
10223
10223
  var import_runtime26 = require("@homebound/truss/runtime");
10224
10224
  var import_jsx_runtime36 = require("react/jsx-runtime");
10225
10225
  function AvatarButton(props) {
@@ -10247,7 +10247,7 @@ function AvatarButton(props) {
10247
10247
  const {
10248
10248
  buttonProps,
10249
10249
  isPressed: isPressedFromEvents
10250
- } = (0, import_react_aria10.useButton)({
10250
+ } = (0, import_react_aria11.useButton)({
10251
10251
  ...ariaProps,
10252
10252
  onPress: typeof onPress === "string" ? noop : onPress,
10253
10253
  elementType: typeof onPress === "string" ? "a" : "button"
@@ -10255,11 +10255,11 @@ function AvatarButton(props) {
10255
10255
  const {
10256
10256
  focusProps,
10257
10257
  isFocusVisible: isFocusVisibleFromEvents
10258
- } = (0, import_react_aria10.useFocusRing)(ariaProps);
10258
+ } = (0, import_react_aria11.useFocusRing)(ariaProps);
10259
10259
  const {
10260
10260
  hoverProps,
10261
10261
  isHovered: isHoveredFromEvents
10262
- } = (0, import_react_aria10.useHover)(ariaProps);
10262
+ } = (0, import_react_aria11.useHover)(ariaProps);
10263
10263
  const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
10264
10264
  const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
10265
10265
  const isPressed = __storyState?.pressed ?? isPressedFromEvents;
@@ -10321,16 +10321,16 @@ var pressedOverlayCss = {
10321
10321
 
10322
10322
  // src/components/ButtonModal.tsx
10323
10323
  var import_react39 = require("react");
10324
- var import_react_aria15 = require("react-aria");
10324
+ var import_react_aria16 = require("react-aria");
10325
10325
  var import_react_stately3 = require("react-stately");
10326
10326
 
10327
10327
  // src/components/internal/OverlayTrigger.tsx
10328
10328
  var import_react38 = require("react");
10329
- var import_react_aria13 = require("react-aria");
10329
+ var import_react_aria14 = require("react-aria");
10330
10330
 
10331
10331
  // src/components/Button.tsx
10332
10332
  var import_react36 = require("react");
10333
- var import_react_aria11 = require("react-aria");
10333
+ var import_react_aria12 = require("react-aria");
10334
10334
  var import_runtime27 = require("@homebound/truss/runtime");
10335
10335
  var import_jsx_runtime37 = require("react/jsx-runtime");
10336
10336
  function Button(props) {
@@ -10370,7 +10370,7 @@ function Button(props) {
10370
10370
  const {
10371
10371
  buttonProps,
10372
10372
  isPressed
10373
- } = (0, import_react_aria11.useButton)({
10373
+ } = (0, import_react_aria12.useButton)({
10374
10374
  ...ariaProps,
10375
10375
  onPress: asLink ? noop : (e) => {
10376
10376
  const result = onPress(e);
@@ -10385,11 +10385,11 @@ function Button(props) {
10385
10385
  const {
10386
10386
  isFocusVisible,
10387
10387
  focusProps
10388
- } = (0, import_react_aria11.useFocusRing)(ariaProps);
10388
+ } = (0, import_react_aria12.useFocusRing)(ariaProps);
10389
10389
  const {
10390
10390
  hoverProps,
10391
10391
  isHovered
10392
- } = (0, import_react_aria11.useHover)(ariaProps);
10392
+ } = (0, import_react_aria12.useHover)(ariaProps);
10393
10393
  const {
10394
10394
  baseStyles: baseStyles5,
10395
10395
  hoverStyles: hoverStyles4,
@@ -10770,7 +10770,7 @@ var iconStyles = {
10770
10770
 
10771
10771
  // src/components/NavLinks/NavLink.tsx
10772
10772
  var import_react37 = require("react");
10773
- var import_react_aria12 = require("react-aria");
10773
+ var import_react_aria13 = require("react-aria");
10774
10774
  var import_runtime28 = require("@homebound/truss/runtime");
10775
10775
  var import_jsx_runtime38 = require("react/jsx-runtime");
10776
10776
  function NavLink(props) {
@@ -10799,7 +10799,7 @@ function NavLink(props) {
10799
10799
  const {
10800
10800
  buttonProps,
10801
10801
  isPressed
10802
- } = (0, import_react_aria12.useButton)({
10802
+ } = (0, import_react_aria13.useButton)({
10803
10803
  ...ariaProps,
10804
10804
  onPress: asLink ? noop : (e) => {
10805
10805
  if (typeof onClick === "function") {
@@ -10813,13 +10813,13 @@ function NavLink(props) {
10813
10813
  const {
10814
10814
  hoverProps,
10815
10815
  isHovered
10816
- } = (0, import_react_aria12.useHover)({
10816
+ } = (0, import_react_aria13.useHover)({
10817
10817
  isDisabled
10818
10818
  });
10819
10819
  const {
10820
10820
  isFocusVisible,
10821
10821
  focusProps
10822
- } = (0, import_react_aria12.useFocusRing)(ariaProps);
10822
+ } = (0, import_react_aria13.useFocusRing)(ariaProps);
10823
10823
  const {
10824
10824
  baseStyles: baseStyles5,
10825
10825
  activeStyles: activeStyles3,
@@ -10852,7 +10852,7 @@ function NavLink(props) {
10852
10852
  labelContent,
10853
10853
  icon && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "fs0", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { icon }) })
10854
10854
  ] });
10855
- return getButtonOrLink(linkContent, onClick, (0, import_react_aria12.mergeProps)(buttonProps, focusProps, hoverProps, linkAttributes, {
10855
+ return getButtonOrLink(linkContent, onClick, (0, import_react_aria13.mergeProps)(buttonProps, focusProps, hoverProps, linkAttributes, {
10856
10856
  className: navLink
10857
10857
  }, otherProps), openInNew);
10858
10858
  }
@@ -10990,7 +10990,7 @@ function OverlayTrigger(props) {
10990
10990
  const popoverRef = (0, import_react38.useRef)(null);
10991
10991
  const {
10992
10992
  overlayProps: positionProps
10993
- } = (0, import_react_aria13.useOverlayPosition)({
10993
+ } = (0, import_react_aria14.useOverlayPosition)({
10994
10994
  targetRef: buttonRef,
10995
10995
  overlayRef: popoverRef,
10996
10996
  shouldFlip: true,
@@ -11026,7 +11026,7 @@ function labelOr(trigger, fallback) {
11026
11026
  }
11027
11027
 
11028
11028
  // src/components/internal/ContextualModal.tsx
11029
- var import_react_aria14 = require("react-aria");
11029
+ var import_react_aria15 = require("react-aria");
11030
11030
  var import_jsx_runtime40 = require("react/jsx-runtime");
11031
11031
  function ContextualModal(props) {
11032
11032
  const {
@@ -11035,7 +11035,7 @@ function ContextualModal(props) {
11035
11035
  close
11036
11036
  } = props;
11037
11037
  const tid = useTestIds(props, "popup");
11038
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_aria14.FocusScope, { restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "pt3 pb3 pr3 pl3 df fdc gap3 bgWhite bshModal br4 maxh_inherit oa", ...tid, children: [
11038
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react_aria15.FocusScope, { restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "pt3 pb3 pr3 pl3 df fdc gap3 bgWhite bshModal br4 maxh_inherit oa", ...tid, children: [
11039
11039
  title && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "fw6 fz_18px lh_28px tac", ...tid.title, children: title }),
11040
11040
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { ...tid.content, children: typeof content === "function" ? content(close) : content })
11041
11041
  ] }) });
@@ -11047,7 +11047,7 @@ function ButtonModal(props) {
11047
11047
  const { storybookDefaultOpen, trigger, disabled, content, title } = props;
11048
11048
  const state = (0, import_react_stately3.useMenuTriggerState)({ isOpen: storybookDefaultOpen });
11049
11049
  const buttonRef = (0, import_react39.useRef)(null);
11050
- const { menuTriggerProps } = (0, import_react_aria15.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
11050
+ const { menuTriggerProps } = (0, import_react_aria16.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
11051
11051
  const tid = useTestIds(
11052
11052
  props,
11053
11053
  isTextButton(trigger) ? labelOr(trigger, "buttonModal") : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name
@@ -11122,11 +11122,11 @@ function MenuItemImpl(props) {
11122
11122
  const {
11123
11123
  hoverProps,
11124
11124
  isHovered
11125
- } = (0, import_react_aria16.useHover)({});
11125
+ } = (0, import_react_aria17.useHover)({});
11126
11126
  const tid = useTestIds(props);
11127
11127
  const {
11128
11128
  menuItemProps
11129
- } = (0, import_react_aria16.useMenuItem)({
11129
+ } = (0, import_react_aria17.useMenuItem)({
11130
11130
  key: item.key,
11131
11131
  isDisabled: Boolean(menuItem?.disabled),
11132
11132
  onAction: () => {
@@ -11259,7 +11259,7 @@ function isImageMenuItem(item) {
11259
11259
  }
11260
11260
 
11261
11261
  // src/components/internal/Popover.tsx
11262
- var import_react_aria17 = require("react-aria");
11262
+ var import_react_aria18 = require("react-aria");
11263
11263
 
11264
11264
  // src/components/ContrastScope.tsx
11265
11265
  var import_react41 = require("react");
@@ -11281,7 +11281,7 @@ var import_jsx_runtime45 = require("react/jsx-runtime");
11281
11281
  function Popover(props) {
11282
11282
  const { triggerRef, popoverRef, positionProps, children, onClose, isOpen, ...others } = props;
11283
11283
  const contrastScopeActive = useContrastScope();
11284
- const { overlayProps } = (0, import_react_aria17.useOverlay)(
11284
+ const { overlayProps } = (0, import_react_aria18.useOverlay)(
11285
11285
  {
11286
11286
  onClose,
11287
11287
  isOpen,
@@ -11296,7 +11296,7 @@ function Popover(props) {
11296
11296
  },
11297
11297
  popoverRef
11298
11298
  );
11299
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_aria17.OverlayContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
11299
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_aria18.OverlayContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
11300
11300
  "div",
11301
11301
  {
11302
11302
  ...{ ...overlayProps, ...positionProps },
@@ -11304,7 +11304,7 @@ function Popover(props) {
11304
11304
  "data-theme": contrastScopeActive ? contrastDataTheme : void 0,
11305
11305
  children: [
11306
11306
  children,
11307
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_aria17.DismissButton, { onDismiss: () => onClose() })
11307
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_aria18.DismissButton, { onDismiss: () => onClose() })
11308
11308
  ]
11309
11309
  }
11310
11310
  ) });
@@ -11312,13 +11312,13 @@ function Popover(props) {
11312
11312
 
11313
11313
  // src/inputs/internal/ComboBoxBase.tsx
11314
11314
  var import_react52 = require("react");
11315
- var import_react_aria27 = require("react-aria");
11315
+ var import_react_aria28 = require("react-aria");
11316
11316
  var import_react_stately6 = require("react-stately");
11317
11317
  var import_runtime42 = require("@homebound/truss/runtime");
11318
11318
 
11319
11319
  // src/inputs/internal/ComboBoxInput.tsx
11320
11320
  var import_react51 = require("react");
11321
- var import_react_aria26 = require("react-aria");
11321
+ var import_react_aria27 = require("react-aria");
11322
11322
 
11323
11323
  // src/inputs/hooks/useGrowingTextField.tsx
11324
11324
  var import_utils38 = require("@react-aria/utils");
@@ -11382,35 +11382,35 @@ function useGrowingTextField({ inputRef, inputWrapRef, value, disabled, maxLines
11382
11382
 
11383
11383
  // src/inputs/TreeSelectField/TreeSelectField.tsx
11384
11384
  var import_react50 = __toESM(require("react"), 1);
11385
- var import_react_aria25 = require("react-aria");
11385
+ var import_react_aria26 = require("react-aria");
11386
11386
  var import_react_stately5 = require("react-stately");
11387
11387
  var import_runtime40 = require("@homebound/truss/runtime");
11388
11388
 
11389
11389
  // src/inputs/internal/ListBox.tsx
11390
11390
  var import_react49 = require("react");
11391
- var import_react_aria24 = require("react-aria");
11391
+ var import_react_aria25 = require("react-aria");
11392
11392
 
11393
11393
  // src/inputs/internal/constants.ts
11394
11394
  var persistentItemHeight = 42;
11395
11395
  var sectionSeparatorHeight = 1;
11396
11396
 
11397
11397
  // src/inputs/internal/ListBoxSection.tsx
11398
- var import_react_aria23 = require("react-aria");
11398
+ var import_react_aria24 = require("react-aria");
11399
11399
  var import_runtime38 = require("@homebound/truss/runtime");
11400
11400
 
11401
11401
  // src/inputs/internal/Option.tsx
11402
11402
  var import_react45 = require("react");
11403
- var import_react_aria20 = require("react-aria");
11403
+ var import_react_aria21 = require("react-aria");
11404
11404
 
11405
11405
  // src/inputs/ChipSelectField.tsx
11406
11406
  var import_change_case4 = require("change-case");
11407
11407
  var import_react44 = require("react");
11408
- var import_react_aria19 = require("react-aria");
11408
+ var import_react_aria20 = require("react-aria");
11409
11409
  var import_react_stately4 = require("react-stately");
11410
11410
 
11411
11411
  // src/inputs/ChipTextField.tsx
11412
11412
  var import_react43 = require("react");
11413
- var import_react_aria18 = require("react-aria");
11413
+ var import_react_aria19 = require("react-aria");
11414
11414
  var import_runtime31 = require("@homebound/truss/runtime");
11415
11415
  var import_jsx_runtime46 = require("react/jsx-runtime");
11416
11416
  function ChipTextField(props) {
@@ -11433,7 +11433,7 @@ function ChipTextField(props) {
11433
11433
  const [isFocused, setIsFocused] = (0, import_react43.useState)(false);
11434
11434
  const {
11435
11435
  focusProps
11436
- } = (0, import_react_aria18.useFocus)({
11436
+ } = (0, import_react_aria19.useFocus)({
11437
11437
  onFocus: (e) => {
11438
11438
  if (fieldRef.current) {
11439
11439
  const range = document.createRange();
@@ -11593,7 +11593,7 @@ function ChipSelectField(props) {
11593
11593
  const [isClearFocused, setIsClearFocused] = (0, import_react44.useState)(false);
11594
11594
  const {
11595
11595
  focusProps
11596
- } = (0, import_react_aria19.useFocus)({
11596
+ } = (0, import_react_aria20.useFocus)({
11597
11597
  onFocus: (e) => {
11598
11598
  if (popoverRef.current && popoverRef.current.contains(e.relatedTarget)) {
11599
11599
  return;
@@ -11611,7 +11611,7 @@ function ChipSelectField(props) {
11611
11611
  });
11612
11612
  const {
11613
11613
  focusProps: clearFocusProps
11614
- } = (0, import_react_aria19.useFocus)({
11614
+ } = (0, import_react_aria20.useFocus)({
11615
11615
  onFocusChange: setIsClearFocused
11616
11616
  });
11617
11617
  const buttonRef = (0, import_react44.useRef)(null);
@@ -11697,16 +11697,16 @@ function ChipSelectField(props) {
11697
11697
  triggerProps,
11698
11698
  valueProps,
11699
11699
  menuProps
11700
- } = (0, import_react_aria19.useSelect)(selectHookProps, state, buttonRef);
11700
+ } = (0, import_react_aria20.useSelect)(selectHookProps, state, buttonRef);
11701
11701
  const {
11702
11702
  buttonProps
11703
- } = (0, import_react_aria19.useButton)({
11703
+ } = (0, import_react_aria20.useButton)({
11704
11704
  ...triggerProps,
11705
11705
  isDisabled
11706
11706
  }, buttonRef);
11707
11707
  const {
11708
11708
  overlayProps
11709
- } = (0, import_react_aria19.useOverlayPosition)({
11709
+ } = (0, import_react_aria20.useOverlayPosition)({
11710
11710
  targetRef: buttonRef,
11711
11711
  overlayRef: popoverRef,
11712
11712
  scrollRef: listBoxRef,
@@ -11749,7 +11749,7 @@ function ChipSelectField(props) {
11749
11749
  } : {}
11750
11750
  }), children: [
11751
11751
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Label, { label, labelProps, hidden: true, ...tid.label }),
11752
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("button", { ...(0, import_react_aria19.mergeProps)(focusProps, buttonProps), ref: buttonRef, ...(0, import_runtime33.trussProps)({
11752
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("button", { ...(0, import_react_aria20.mergeProps)(focusProps, buttonProps), ref: buttonRef, ...(0, import_runtime33.trussProps)({
11753
11753
  ...{
11754
11754
  textAlign: "tal",
11755
11755
  borderRadius: "br16",
@@ -11824,7 +11824,7 @@ function Option(props) {
11824
11824
  const {
11825
11825
  hoverProps,
11826
11826
  isHovered
11827
- } = (0, import_react_aria20.useHover)({});
11827
+ } = (0, import_react_aria21.useHover)({});
11828
11828
  const themeStyles = {
11829
11829
  item: {
11830
11830
  color: ["color_var", {
@@ -11853,7 +11853,7 @@ function Option(props) {
11853
11853
  isDisabled,
11854
11854
  isFocused,
11855
11855
  isSelected
11856
- } = (0, import_react_aria20.useOption)({
11856
+ } = (0, import_react_aria21.useOption)({
11857
11857
  key: item.key,
11858
11858
  shouldSelectOnPressUp: true,
11859
11859
  shouldFocusOnHover: false
@@ -11861,7 +11861,7 @@ function Option(props) {
11861
11861
  return maybeTooltip({
11862
11862
  title: disabledReason,
11863
11863
  placement: "right",
11864
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("li", { ...(0, import_react_aria20.mergeProps)(optionProps, hoverProps), "data-label": item.textValue, ref, ...(0, import_runtime34.trussProps)({
11864
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("li", { ...(0, import_react_aria21.mergeProps)(optionProps, hoverProps), "data-label": item.textValue, ref, ...(0, import_runtime34.trussProps)({
11865
11865
  ...{
11866
11866
  display: "df",
11867
11867
  alignItems: "aic",
@@ -11941,11 +11941,11 @@ function LoadingDots() {
11941
11941
 
11942
11942
  // src/inputs/TreeSelectField/TreeOption.tsx
11943
11943
  var import_react47 = require("react");
11944
- var import_react_aria22 = require("react-aria");
11944
+ var import_react_aria23 = require("react-aria");
11945
11945
 
11946
11946
  // src/inputs/CheckboxBase.tsx
11947
11947
  var import_react46 = require("react");
11948
- var import_react_aria21 = require("react-aria");
11948
+ var import_react_aria22 = require("react-aria");
11949
11949
  var import_runtime36 = require("@homebound/truss/runtime");
11950
11950
  var import_jsx_runtime51 = require("react/jsx-runtime");
11951
11951
  function CheckboxBase(props) {
@@ -11967,7 +11967,7 @@ function CheckboxBase(props) {
11967
11967
  const {
11968
11968
  isFocusVisible,
11969
11969
  focusProps
11970
- } = (0, import_react_aria21.useFocusRing)(ariaProps);
11970
+ } = (0, import_react_aria22.useFocusRing)(ariaProps);
11971
11971
  const tid = useTestIds(props, defaultTestId(label));
11972
11972
  const maxWidth = fullWidth ? "none" : description !== void 0 ? px(344) : px(320);
11973
11973
  const Tag2 = withLabelElement ? "label" : "div";
@@ -11986,7 +11986,7 @@ function CheckboxBase(props) {
11986
11986
  cursor: "cursorNotAllowed"
11987
11987
  } : {}
11988
11988
  }), "aria-label": label, children: [
11989
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_aria21.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("input", { ref, ...(0, import_react_aria21.mergeProps)(inputProps, focusProps), ...tid, "data-indeterminate": isIndeterminate }) }),
11989
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_aria22.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("input", { ref, ...(0, import_react_aria22.mergeProps)(inputProps, focusProps), ...tid, "data-indeterminate": isIndeterminate }) }),
11990
11990
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(StyledCheckbox, { ...props, isFocusVisible, ...tid }),
11991
11991
  !checkboxOnly && // Use a mtPx(-2) to better align the label with the checkbox.
11992
11992
  // Not using align-items: center as the checkbox would align with all content below, where we really want it to stay only aligned with the label
@@ -12077,7 +12077,7 @@ function StyledCheckbox(props) {
12077
12077
  const {
12078
12078
  hoverProps,
12079
12079
  isHovered
12080
- } = (0, import_react_aria21.useHover)({
12080
+ } = (0, import_react_aria22.useHover)({
12081
12081
  isDisabled
12082
12082
  });
12083
12083
  const markIcon = isIndeterminate ? dashSmall : isSelected ? checkmarkSmall : "";
@@ -12102,7 +12102,8 @@ function TreeOption(props) {
12102
12102
  const {
12103
12103
  item,
12104
12104
  state,
12105
- allowCollapsing = true
12105
+ allowCollapsing = true,
12106
+ disabledReason
12106
12107
  } = props;
12107
12108
  const leveledOption = item.value;
12108
12109
  if (!leveledOption) return null;
@@ -12111,7 +12112,7 @@ function TreeOption(props) {
12111
12112
  const {
12112
12113
  hoverProps,
12113
12114
  isHovered
12114
- } = (0, import_react_aria22.useHover)({});
12115
+ } = (0, import_react_aria23.useHover)({});
12115
12116
  const tid = useTestIds(props, "treeOption");
12116
12117
  const {
12117
12118
  collapsedKeys,
@@ -12124,7 +12125,7 @@ function TreeOption(props) {
12124
12125
  isDisabled,
12125
12126
  isFocused,
12126
12127
  isSelected
12127
- } = (0, import_react_aria22.useOption)({
12128
+ } = (0, import_react_aria23.useOption)({
12128
12129
  key: item.key,
12129
12130
  shouldSelectOnPressUp: true,
12130
12131
  shouldFocusOnHover: false
@@ -12159,43 +12160,47 @@ function TreeOption(props) {
12159
12160
  }]
12160
12161
  }
12161
12162
  };
12162
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("li", { ...hoverProps, onClick: (e) => {
12163
- if (!isGroup) return;
12164
- e.preventDefault();
12165
- e.stopPropagation();
12166
- toggleCollapsed();
12167
- }, ...(0, import_runtime37.trussProps)({
12168
- ...{
12169
- display: "df",
12170
- alignItems: "aic",
12171
- justifyContent: "jcsb",
12172
- gap: "gap1",
12173
- paddingLeft: ["pl_var", {
12174
- "--paddingLeft": `${16 + level * 8}px`
12175
- }],
12176
- minHeight: "mh_42px",
12177
- outline: "outline0",
12178
- cursor: "cursorPointer",
12179
- fontWeight: "fw4",
12180
- fontSize: "fz_14px",
12181
- lineHeight: "lh_20px"
12182
- },
12183
- ...listItemStyles.item,
12184
- ...isHovered && (!isDisabled || isGroup) ? listItemStyles.hover : {},
12185
- ...isFocused && !isGroup ? listItemStyles.focus : {},
12186
- ...isDisabled && !isGroup ? listItemStyles.disabled : {}
12187
- }), children: [
12188
- allowCollapsing && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "w_18px fs0 df aic", children: canCollapse && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("button", { onClick: (e) => {
12163
+ return maybeTooltip({
12164
+ title: !isGroup ? disabledReason : void 0,
12165
+ placement: "right",
12166
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("li", { ...hoverProps, onClick: (e) => {
12167
+ if (!isGroup) return;
12189
12168
  e.preventDefault();
12190
12169
  e.stopPropagation();
12191
12170
  toggleCollapsed();
12192
- return false;
12193
- }, className: "br4 h_16px w_16px bgTransparent h_bgGray300", ...tid[`collapseToggle_${item.key}`], children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { icon: collapsedKeys.includes(item.key) ? "triangleRight" : "triangleDown", inc: 2 }) }) }),
12194
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("span", { className: "df aic gap1 h100 fg1 pt1 pb1 pr2", ref, ...optionProps, "data-label": item.textValue, children: [
12195
- !isGroup && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(StyledCheckbox, { isDisabled, isSelected, isIndeterminate, ...tid[item.key.toString()] }),
12196
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "pl1", children: item.rendered })
12171
+ }, ...(0, import_runtime37.trussProps)({
12172
+ ...{
12173
+ display: "df",
12174
+ alignItems: "aic",
12175
+ justifyContent: "jcsb",
12176
+ gap: "gap1",
12177
+ paddingLeft: ["pl_var", {
12178
+ "--paddingLeft": `${16 + level * 8}px`
12179
+ }],
12180
+ minHeight: "mh_42px",
12181
+ outline: "outline0",
12182
+ cursor: "cursorPointer",
12183
+ fontWeight: "fw4",
12184
+ fontSize: "fz_14px",
12185
+ lineHeight: "lh_20px"
12186
+ },
12187
+ ...listItemStyles.item,
12188
+ ...isHovered && (!isDisabled || isGroup) ? listItemStyles.hover : {},
12189
+ ...isFocused && !isGroup ? listItemStyles.focus : {},
12190
+ ...isDisabled && !isGroup ? listItemStyles.disabled : {}
12191
+ }), children: [
12192
+ allowCollapsing && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "w_18px fs0 df aic", children: canCollapse && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("button", { onClick: (e) => {
12193
+ e.preventDefault();
12194
+ e.stopPropagation();
12195
+ toggleCollapsed();
12196
+ return false;
12197
+ }, className: "br4 h_16px w_16px bgTransparent h_bgGray300", ...tid[`collapseToggle_${item.key}`], children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { icon: collapsedKeys.includes(item.key) ? "triangleRight" : "triangleDown", inc: 2 }) }) }),
12198
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("span", { className: "df aic gap1 h100 fg1 pt1 pb1 pr2", ref, ...optionProps, "data-label": item.textValue, children: [
12199
+ !isGroup && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(StyledCheckbox, { isDisabled, isSelected, isIndeterminate, ...tid[item.key.toString()] }),
12200
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "pl1", children: item.rendered })
12201
+ ] })
12197
12202
  ] })
12198
- ] });
12203
+ });
12199
12204
  }
12200
12205
  function hasSelectedChildren(childOption, state, getOptionValue) {
12201
12206
  if (childOption.children && childOption.children.length > 0) {
@@ -12293,7 +12298,8 @@ function VirtualizedOptions(props) {
12293
12298
  {
12294
12299
  item,
12295
12300
  state,
12296
- allowCollapsing
12301
+ allowCollapsing,
12302
+ disabledReason: disabledOptionsWithReasons[item.key]
12297
12303
  },
12298
12304
  item.key
12299
12305
  );
@@ -12335,10 +12341,10 @@ function ListBoxSection(props) {
12335
12341
  const {
12336
12342
  itemProps,
12337
12343
  groupProps
12338
- } = (0, import_react_aria23.useListBoxSection)(section);
12344
+ } = (0, import_react_aria24.useListBoxSection)(section);
12339
12345
  const {
12340
12346
  separatorProps
12341
- } = (0, import_react_aria23.useSeparator)({
12347
+ } = (0, import_react_aria24.useSeparator)({
12342
12348
  elementType: "li"
12343
12349
  });
12344
12350
  const isPersistentSection = section.key !== state.collection.getFirstKey();
@@ -12396,7 +12402,7 @@ function ListBox(props) {
12396
12402
  } = props;
12397
12403
  const {
12398
12404
  listBoxProps
12399
- } = (0, import_react_aria24.useListBox)({
12405
+ } = (0, import_react_aria25.useListBox)({
12400
12406
  disallowEmptySelection: true,
12401
12407
  ...props
12402
12408
  }, state, listBoxRef);
@@ -12553,7 +12559,7 @@ function TreeSelectFieldBase(props) {
12553
12559
  const initialOptions = Array.isArray(options) ? options : options.current;
12554
12560
  const {
12555
12561
  contains
12556
- } = (0, import_react_aria25.useFilter)({
12562
+ } = (0, import_react_aria26.useFilter)({
12557
12563
  sensitivity: "base"
12558
12564
  });
12559
12565
  const {
@@ -12819,7 +12825,7 @@ function TreeSelectFieldBase(props) {
12819
12825
  inputProps,
12820
12826
  listBoxProps,
12821
12827
  labelProps
12822
- } = (0, import_react_aria25.useComboBox)({
12828
+ } = (0, import_react_aria26.useComboBox)({
12823
12829
  ...comboBoxProps,
12824
12830
  inputRef,
12825
12831
  buttonRef: triggerRef,
@@ -12828,13 +12834,13 @@ function TreeSelectFieldBase(props) {
12828
12834
  }, state);
12829
12835
  const {
12830
12836
  buttonProps
12831
- } = (0, import_react_aria25.useButton)({
12837
+ } = (0, import_react_aria26.useButton)({
12832
12838
  ...triggerProps,
12833
12839
  isDisabled: isDisabled || isReadOnly
12834
12840
  }, triggerRef);
12835
12841
  const {
12836
12842
  overlayProps: positionProps
12837
- } = (0, import_react_aria25.useOverlayPosition)({
12843
+ } = (0, import_react_aria26.useOverlayPosition)({
12838
12844
  targetRef: inputWrapRef,
12839
12845
  overlayRef: popoverRef,
12840
12846
  scrollRef: listBoxRef,
@@ -12874,7 +12880,7 @@ function TreeSelectFieldBase(props) {
12874
12880
  onClose: () => state.toggle(),
12875
12881
  isOpen: state.isOpen,
12876
12882
  minWidth: 320,
12877
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ListBox, { ...listBoxProps, positionProps, state, listBoxRef, selectedOptions: fieldState.selectedChipOptions, getOptionLabel, getOptionValue: (o) => valueToKey(getOptionValue(o)), horizontalLayout: labelStyle === "left", loading: fieldState.optionsLoading, allowCollapsing: fieldState.allowCollapsing, isTree: true })
12883
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ListBox, { ...listBoxProps, positionProps, state, listBoxRef, selectedOptions: fieldState.selectedChipOptions, getOptionLabel, getOptionValue: (o) => valueToKey(getOptionValue(o)), horizontalLayout: labelStyle === "left", loading: fieldState.optionsLoading, allowCollapsing: fieldState.allowCollapsing, disabledOptionsWithReasons, isTree: true })
12878
12884
  }
12879
12885
  )
12880
12886
  ] });
@@ -12995,7 +13001,7 @@ function ComboBoxInput(props) {
12995
13001
  }]
12996
13002
  } : {}
12997
13003
  }), "data-testid": "toggleListBox", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { icon: state.isOpen ? "chevronUp" : "chevronDown" }) }), inputProps: {
12998
- ...(0, import_react_aria26.mergeProps)(inputProps, {
13004
+ ...(0, import_react_aria27.mergeProps)(inputProps, {
12999
13005
  "aria-invalid": Boolean(errorMsg),
13000
13006
  onInput: () => state.open()
13001
13007
  }),
@@ -13142,7 +13148,7 @@ function ComboBoxBase(props) {
13142
13148
  const selectedOptions = (0, import_react52.useMemo)(() => options.filter((o) => values.includes(getOptionValue(o))), [options, values, getOptionValue]);
13143
13149
  const {
13144
13150
  contains
13145
- } = (0, import_react_aria27.useFilter)({
13151
+ } = (0, import_react_aria28.useFilter)({
13146
13152
  sensitivity: "base"
13147
13153
  });
13148
13154
  const isDisabled = !!disabled;
@@ -13282,7 +13288,7 @@ function ComboBoxBase(props) {
13282
13288
  inputProps,
13283
13289
  listBoxProps,
13284
13290
  labelProps
13285
- } = (0, import_react_aria27.useComboBox)({
13291
+ } = (0, import_react_aria28.useComboBox)({
13286
13292
  ...comboBoxProps,
13287
13293
  inputRef,
13288
13294
  buttonRef: triggerRef,
@@ -13291,13 +13297,13 @@ function ComboBoxBase(props) {
13291
13297
  }, state);
13292
13298
  const {
13293
13299
  buttonProps
13294
- } = (0, import_react_aria27.useButton)({
13300
+ } = (0, import_react_aria28.useButton)({
13295
13301
  ...triggerProps,
13296
13302
  isDisabled: isDisabled || isReadOnly
13297
13303
  }, triggerRef);
13298
13304
  const {
13299
13305
  overlayProps: positionProps
13300
- } = (0, import_react_aria27.useOverlayPosition)({
13306
+ } = (0, import_react_aria28.useOverlayPosition)({
13301
13307
  targetRef: inputWrapRef,
13302
13308
  overlayRef: popoverRef,
13303
13309
  scrollRef: listBoxRef,
@@ -13455,7 +13461,7 @@ function Autocomplete(props) {
13455
13461
  const inputRef = (0, import_react53.useRef)(null);
13456
13462
  const listBoxRef = (0, import_react53.useRef)(null);
13457
13463
  const popoverRef = (0, import_react53.useRef)(null);
13458
- const { inputProps, listBoxProps, labelProps } = (0, import_react_aria28.useComboBox)(
13464
+ const { inputProps, listBoxProps, labelProps } = (0, import_react_aria29.useComboBox)(
13459
13465
  {
13460
13466
  ...comboBoxProps,
13461
13467
  inputRef,
@@ -13466,7 +13472,7 @@ function Autocomplete(props) {
13466
13472
  },
13467
13473
  state
13468
13474
  );
13469
- const { overlayProps: positionProps } = (0, import_react_aria28.useOverlayPosition)({
13475
+ const { overlayProps: positionProps } = (0, import_react_aria29.useOverlayPosition)({
13470
13476
  targetRef: inputWrapRef,
13471
13477
  overlayRef: popoverRef,
13472
13478
  scrollRef: listBoxRef,
@@ -13522,7 +13528,7 @@ function Autocomplete(props) {
13522
13528
 
13523
13529
  // src/inputs/Checkbox.tsx
13524
13530
  var import_react54 = require("react");
13525
- var import_react_aria29 = require("react-aria");
13531
+ var import_react_aria30 = require("react-aria");
13526
13532
  var import_react_stately8 = require("react-stately");
13527
13533
  var import_jsx_runtime61 = require("react/jsx-runtime");
13528
13534
  function Checkbox(props) {
@@ -13533,7 +13539,7 @@ function Checkbox(props) {
13533
13539
  const checkboxProps = { ...ariaProps, "aria-label": label };
13534
13540
  const ref = (0, import_react54.useRef)(null);
13535
13541
  const toggleState = (0, import_react_stately8.useToggleState)(ariaProps);
13536
- const { inputProps } = (0, import_react_aria29.useCheckbox)(checkboxProps, toggleState, ref);
13542
+ const { inputProps } = (0, import_react_aria30.useCheckbox)(checkboxProps, toggleState, ref);
13537
13543
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
13538
13544
  CheckboxBase,
13539
13545
  {
@@ -13551,7 +13557,7 @@ function Checkbox(props) {
13551
13557
 
13552
13558
  // src/inputs/CheckboxGroup.tsx
13553
13559
  var import_react55 = require("react");
13554
- var import_react_aria30 = require("react-aria");
13560
+ var import_react_aria31 = require("react-aria");
13555
13561
  var import_react_stately9 = require("react-stately");
13556
13562
  var import_runtime43 = require("@homebound/truss/runtime");
13557
13563
  var import_jsx_runtime62 = require("react/jsx-runtime");
@@ -13578,7 +13584,7 @@ function CheckboxGroup(props) {
13578
13584
  const {
13579
13585
  groupProps,
13580
13586
  labelProps
13581
- } = (0, import_react_aria30.useCheckboxGroup)(props, state);
13587
+ } = (0, import_react_aria31.useCheckboxGroup)(props, state);
13582
13588
  const tid = useTestIds(props);
13583
13589
  const labelSuffix = useLabelSuffix(required, false);
13584
13590
  return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { ...groupProps, ...(0, import_runtime43.trussProps)({
@@ -13628,7 +13634,7 @@ function CheckboxGroupItem(props) {
13628
13634
  const ref = (0, import_react55.useRef)(null);
13629
13635
  const {
13630
13636
  inputProps
13631
- } = (0, import_react_aria30.useCheckboxGroupItem)(checkboxProps, groupState, ref);
13637
+ } = (0, import_react_aria31.useCheckboxGroupItem)(checkboxProps, groupState, ref);
13632
13638
  return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CheckboxBase, { ariaProps, description, isDisabled, isIndeterminate, isSelected, inputProps, label, ...otherProps });
13633
13639
  }
13634
13640
 
@@ -13744,7 +13750,7 @@ function DateFieldMock(props) {
13744
13750
 
13745
13751
  // src/inputs/DateFields/DateFieldBase.tsx
13746
13752
  var import_react57 = require("react");
13747
- var import_react_aria31 = require("react-aria");
13753
+ var import_react_aria32 = require("react-aria");
13748
13754
  var import_react_stately10 = require("react-stately");
13749
13755
  var import_runtime44 = require("@homebound/truss/runtime");
13750
13756
  var import_jsx_runtime64 = require("react/jsx-runtime");
@@ -13798,7 +13804,7 @@ function DateFieldBase(props) {
13798
13804
  const {
13799
13805
  labelProps,
13800
13806
  inputProps
13801
- } = (0, import_react_aria31.useTextField)({
13807
+ } = (0, import_react_aria32.useTextField)({
13802
13808
  ...textFieldProps,
13803
13809
  // Setting `inputMode` to none. This disables the virtual keyboard from being triggered on touch devices
13804
13810
  inputMode: "none",
@@ -13835,19 +13841,19 @@ function DateFieldBase(props) {
13835
13841
  const {
13836
13842
  triggerProps,
13837
13843
  overlayProps
13838
- } = (0, import_react_aria31.useOverlayTrigger)({
13844
+ } = (0, import_react_aria32.useOverlayTrigger)({
13839
13845
  type: "dialog"
13840
13846
  }, state, buttonRef);
13841
13847
  const {
13842
13848
  buttonProps
13843
- } = (0, import_react_aria31.useButton)({
13849
+ } = (0, import_react_aria32.useButton)({
13844
13850
  ...triggerProps,
13845
13851
  isDisabled: isDisabled || isReadOnly,
13846
13852
  onPress: state.open
13847
13853
  }, buttonRef);
13848
13854
  const {
13849
13855
  overlayProps: positionProps
13850
- } = (0, import_react_aria31.useOverlayPosition)({
13856
+ } = (0, import_react_aria32.useOverlayPosition)({
13851
13857
  targetRef: inputWrapRef,
13852
13858
  overlayRef,
13853
13859
  shouldFlip: true,
@@ -13939,7 +13945,7 @@ function DateFieldBase(props) {
13939
13945
  ...others
13940
13946
  }
13941
13947
  ),
13942
- state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Popover, { triggerRef: inputWrapRef, popoverRef: overlayRef, positionProps, onClose: state.close, isOpen: state.isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_aria31.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DatePickerOverlay, { overlayProps, children: isRangeMode ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DateRangePicker, { range: wipValue, disabledDays, onSelect: (dr) => {
13948
+ state.isOpen && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Popover, { triggerRef: inputWrapRef, popoverRef: overlayRef, positionProps, onClose: state.close, isOpen: state.isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_aria32.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DatePickerOverlay, { overlayProps, children: isRangeMode ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DateRangePicker, { range: wipValue, disabledDays, onSelect: (dr) => {
13943
13949
  setInputValue(formatDateRange(dr, dateFormats.short) ?? "");
13944
13950
  onChange(dr);
13945
13951
  }, useYearPicker: isRangeFilterField || useYearPicker, ...tid.datePicker }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DatePicker, { value: wipValue, disabledDays, onSelect: (d) => {
@@ -13981,7 +13987,7 @@ function DateRangeField(props) {
13981
13987
 
13982
13988
  // src/inputs/IconCard.tsx
13983
13989
  var import_react58 = require("react");
13984
- var import_react_aria32 = require("react-aria");
13990
+ var import_react_aria33 = require("react-aria");
13985
13991
  var import_react_stately11 = require("react-stately");
13986
13992
  var import_runtime45 = require("@homebound/truss/runtime");
13987
13993
  var import_jsx_runtime68 = require("react/jsx-runtime");
@@ -14008,13 +14014,13 @@ function IconCard(props) {
14008
14014
  const {
14009
14015
  hoverProps,
14010
14016
  isHovered
14011
- } = (0, import_react_aria32.useHover)({
14017
+ } = (0, import_react_aria33.useHover)({
14012
14018
  isDisabled
14013
14019
  });
14014
14020
  const toggleState = (0, import_react_stately11.useToggleState)(ariaProps);
14015
14021
  const {
14016
14022
  inputProps
14017
- } = (0, import_react_aria32.useCheckbox)(checkboxProps, toggleState, ref);
14023
+ } = (0, import_react_aria33.useCheckbox)(checkboxProps, toggleState, ref);
14018
14024
  const styles = (0, import_react58.useMemo)(() => ({
14019
14025
  ...baseStyles3,
14020
14026
  ...isHovered && iconCardStylesHover,
@@ -14026,7 +14032,7 @@ function IconCard(props) {
14026
14032
  title: resolveTooltip(isDisabled, tooltip),
14027
14033
  placement: "top",
14028
14034
  children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("button", { ...(0, import_runtime45.trussProps)(styles), ...hoverProps, onClick: toggleState.toggle, disabled: isDisabled, ...tid, children: [
14029
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_aria32.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("input", { ref, ...inputProps, ...tid.value }) }),
14035
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_aria33.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("input", { ref, ...inputProps, ...tid.value }) }),
14030
14036
  /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon, { icon, inc: 4, color: isDisabled ? "rgba(221, 220, 220, 1)" /* Gray300 */ : "rgba(36, 36, 36, 1)" /* Gray900 */ }),
14031
14037
  /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { ...(0, import_runtime45.trussProps)({
14032
14038
  fontWeight: "fw4",
@@ -14141,7 +14147,7 @@ function MultiSelectField(props) {
14141
14147
  // src/inputs/NumberField.tsx
14142
14148
  var import_number = require("@internationalized/number");
14143
14149
  var import_react60 = require("react");
14144
- var import_react_aria33 = require("react-aria");
14150
+ var import_react_aria34 = require("react-aria");
14145
14151
  var import_react_stately12 = require("react-stately");
14146
14152
  var import_jsx_runtime71 = require("react/jsx-runtime");
14147
14153
  function NumberField(props) {
@@ -14193,7 +14199,7 @@ function NumberField(props) {
14193
14199
  }), [truncate, numIntegerDigits, useGrouping, signDisplay, numFractionDigits]);
14194
14200
  const {
14195
14201
  locale
14196
- } = (0, import_react_aria33.useLocale)();
14202
+ } = (0, import_react_aria34.useLocale)();
14197
14203
  const formatOptions = (0, import_react60.useMemo)(() => {
14198
14204
  if (numberFormatOptions !== void 0) {
14199
14205
  return numberFormatOptions;
@@ -14284,7 +14290,7 @@ function NumberField(props) {
14284
14290
  labelProps,
14285
14291
  inputProps,
14286
14292
  groupProps
14287
- } = (0, import_react_aria33.useNumberField)(useProps, state, inputRef);
14293
+ } = (0, import_react_aria34.useNumberField)(useProps, state, inputRef);
14288
14294
  if (readOnly && !inputRef.current) {
14289
14295
  inputRef.current = document.createElement("input");
14290
14296
  }
@@ -14299,7 +14305,7 @@ function NumberField(props) {
14299
14305
  labelProps,
14300
14306
  label,
14301
14307
  required,
14302
- inputProps: (0, import_react_aria33.mergeProps)(inputProps, {
14308
+ inputProps: (0, import_react_aria34.mergeProps)(inputProps, {
14303
14309
  size: sizeToContent ? String(inputProps.value ?? "").length || 1 : void 0
14304
14310
  }),
14305
14311
  onChange: (rawInputValue) => {
@@ -14332,7 +14338,7 @@ function formatValue(value, factor, numFractionDigits, numIntegerDigits, positiv
14332
14338
 
14333
14339
  // src/inputs/RadioGroupField.tsx
14334
14340
  var import_react61 = require("react");
14335
- var import_react_aria34 = require("react-aria");
14341
+ var import_react_aria35 = require("react-aria");
14336
14342
  var import_react_stately13 = require("react-stately");
14337
14343
  var import_runtime47 = require("@homebound/truss/runtime");
14338
14344
  var import_jsx_runtime72 = require("react/jsx-runtime");
@@ -14364,7 +14370,7 @@ function RadioGroupField(props) {
14364
14370
  const {
14365
14371
  labelProps,
14366
14372
  radioGroupProps
14367
- } = (0, import_react_aria34.useRadioGroup)({
14373
+ } = (0, import_react_aria35.useRadioGroup)({
14368
14374
  label,
14369
14375
  isDisabled: disabled,
14370
14376
  isRequired: required
@@ -14425,7 +14431,7 @@ function Radio(props) {
14425
14431
  const {
14426
14432
  inputProps,
14427
14433
  isDisabled
14428
- } = (0, import_react_aria34.useRadio)({
14434
+ } = (0, import_react_aria35.useRadio)({
14429
14435
  value,
14430
14436
  "aria-labelledby": labelId,
14431
14437
  isDisabled: isOptionDisabled
@@ -14434,11 +14440,11 @@ function Radio(props) {
14434
14440
  const {
14435
14441
  focusProps,
14436
14442
  isFocusVisible
14437
- } = (0, import_react_aria34.useFocusRing)();
14443
+ } = (0, import_react_aria35.useFocusRing)();
14438
14444
  const {
14439
14445
  hoverProps,
14440
14446
  isHovered
14441
- } = (0, import_react_aria34.useHover)({
14447
+ } = (0, import_react_aria35.useHover)({
14442
14448
  isDisabled: disabled
14443
14449
  });
14444
14450
  return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("label", { ...(0, import_runtime47.trussProps)({
@@ -14804,7 +14810,7 @@ function SelectField(props) {
14804
14810
 
14805
14811
  // src/inputs/Switch.tsx
14806
14812
  var import_react65 = require("react");
14807
- var import_react_aria35 = require("react-aria");
14813
+ var import_react_aria36 = require("react-aria");
14808
14814
  var import_runtime49 = require("@homebound/truss/runtime");
14809
14815
  var import_jsx_runtime76 = require("react/jsx-runtime");
14810
14816
  var __maybeInc8 = (inc) => {
@@ -14839,18 +14845,18 @@ function Switch(props) {
14839
14845
  const ref = (0, import_react65.useRef)(null);
14840
14846
  const {
14841
14847
  inputProps
14842
- } = (0, import_react_aria35.useSwitch)({
14848
+ } = (0, import_react_aria36.useSwitch)({
14843
14849
  ...ariaProps,
14844
14850
  "aria-label": label
14845
14851
  }, state, ref);
14846
14852
  const {
14847
14853
  isFocusVisible: isFocusVisibleFromEvents,
14848
14854
  focusProps
14849
- } = (0, import_react_aria35.useFocusRing)(otherProps);
14855
+ } = (0, import_react_aria36.useFocusRing)(otherProps);
14850
14856
  const {
14851
14857
  hoverProps,
14852
14858
  isHovered: isHoveredFromEvents
14853
- } = (0, import_react_aria35.useHover)(ariaProps);
14859
+ } = (0, import_react_aria36.useHover)(ariaProps);
14854
14860
  const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
14855
14861
  const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
14856
14862
  const tooltip = resolveTooltip(disabled, props.tooltip);
@@ -14942,7 +14948,7 @@ function Switch(props) {
14942
14948
  lineHeight: "lineHeight_1"
14943
14949
  } : {}
14944
14950
  } }),
14945
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_aria35.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("input", { ref, ...inputProps, ...focusProps, ...tid }) })
14951
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_aria36.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("input", { ref, ...inputProps, ...focusProps, ...tid }) })
14946
14952
  ] });
14947
14953
  }
14948
14954
  var toggleHeight = (isCompact) => isCompact ? 16 : 24;
@@ -14989,7 +14995,7 @@ function switchCircleSelectedStyles(isCompact) {
14989
14995
 
14990
14996
  // src/inputs/TextAreaField.tsx
14991
14997
  var import_react66 = require("react");
14992
- var import_react_aria36 = require("react-aria");
14998
+ var import_react_aria37 = require("react-aria");
14993
14999
  var import_jsx_runtime77 = require("react/jsx-runtime");
14994
15000
  function TextAreaField(props) {
14995
15001
  const {
@@ -15009,7 +15015,7 @@ function TextAreaField(props) {
15009
15015
  const inputRef = (0, import_react66.useRef)(null);
15010
15016
  const inputWrapRef = (0, import_react66.useRef)(null);
15011
15017
  useGrowingTextField({ inputRef, inputWrapRef, value, maxLines });
15012
- const { labelProps, inputProps } = (0, import_react_aria36.useTextField)(
15018
+ const { labelProps, inputProps } = (0, import_react_aria37.useTextField)(
15013
15019
  {
15014
15020
  ...textFieldProps,
15015
15021
  inputElementType: "textarea",
@@ -15032,7 +15038,7 @@ function TextAreaField(props) {
15032
15038
  return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
15033
15039
  TextFieldBase,
15034
15040
  {
15035
- ...(0, import_react_aria36.mergeProps)(otherProps, { onBlur, onFocus }),
15041
+ ...(0, import_react_aria37.mergeProps)(otherProps, { onBlur, onFocus }),
15036
15042
  multiline: true,
15037
15043
  labelProps,
15038
15044
  inputProps,
@@ -15046,7 +15052,7 @@ function TextAreaField(props) {
15046
15052
 
15047
15053
  // src/inputs/TextField.tsx
15048
15054
  var import_react67 = require("react");
15049
- var import_react_aria37 = require("react-aria");
15055
+ var import_react_aria38 = require("react-aria");
15050
15056
  var import_jsx_runtime78 = require("react/jsx-runtime");
15051
15057
  function TextField(props) {
15052
15058
  const {
@@ -15074,7 +15080,7 @@ function TextField(props) {
15074
15080
  value
15075
15081
  };
15076
15082
  const inputRef = (0, import_react67.useRef)(null);
15077
- const { labelProps, inputProps } = (0, import_react_aria37.useTextField)(
15083
+ const { labelProps, inputProps } = (0, import_react_aria38.useTextField)(
15078
15084
  {
15079
15085
  ...textFieldProps,
15080
15086
  onKeyDown: (e) => {
@@ -15096,7 +15102,7 @@ function TextField(props) {
15096
15102
  return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
15097
15103
  TextFieldBase,
15098
15104
  {
15099
- ...(0, import_react_aria37.mergeProps)(textFieldProps, { onBlur, onFocus }),
15105
+ ...(0, import_react_aria38.mergeProps)(textFieldProps, { onBlur, onFocus }),
15100
15106
  errorMsg,
15101
15107
  required,
15102
15108
  labelProps,
@@ -15110,7 +15116,7 @@ function TextField(props) {
15110
15116
 
15111
15117
  // src/inputs/ToggleButton.tsx
15112
15118
  var import_react68 = require("react");
15113
- var import_react_aria38 = require("react-aria");
15119
+ var import_react_aria39 = require("react-aria");
15114
15120
  var import_react_stately14 = require("react-stately");
15115
15121
  var import_runtime50 = require("@homebound/truss/runtime");
15116
15122
  var import_jsx_runtime79 = require("react/jsx-runtime");
@@ -15149,24 +15155,24 @@ function ToggleButton(props) {
15149
15155
  const {
15150
15156
  isPressed: isPressedFromEvents,
15151
15157
  pressProps
15152
- } = (0, import_react_aria38.usePress)({
15158
+ } = (0, import_react_aria39.usePress)({
15153
15159
  ref: labelRef,
15154
15160
  isDisabled
15155
15161
  });
15156
15162
  const {
15157
15163
  inputProps
15158
- } = (0, import_react_aria38.useSwitch)(ariaProps, state, ref);
15164
+ } = (0, import_react_aria39.useSwitch)(ariaProps, state, ref);
15159
15165
  const {
15160
15166
  isFocusVisible: isFocusVisibleFromEvents,
15161
15167
  focusProps
15162
- } = (0, import_react_aria38.useFocusRing)({
15168
+ } = (0, import_react_aria39.useFocusRing)({
15163
15169
  ...otherProps,
15164
15170
  within: true
15165
15171
  });
15166
15172
  const {
15167
15173
  hoverProps,
15168
15174
  isHovered: isHoveredFromEvents
15169
- } = (0, import_react_aria38.useHover)({
15175
+ } = (0, import_react_aria39.useHover)({
15170
15176
  isDisabled
15171
15177
  });
15172
15178
  const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
@@ -15215,7 +15221,7 @@ function ToggleButton(props) {
15215
15221
  children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("label", { ...labelAttrs, children: [
15216
15222
  icon && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon, { icon }),
15217
15223
  label,
15218
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react_aria38.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("input", { ref, ...inputProps, ...tid.value }) })
15224
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react_aria39.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("input", { ref, ...inputProps, ...tid.value }) })
15219
15225
  ] })
15220
15226
  });
15221
15227
  }
@@ -15231,7 +15237,7 @@ var togglePressStyles = {
15231
15237
 
15232
15238
  // src/inputs/ToggleChipGroup.tsx
15233
15239
  var import_react69 = require("react");
15234
- var import_react_aria39 = require("react-aria");
15240
+ var import_react_aria40 = require("react-aria");
15235
15241
  var import_react_stately15 = require("react-stately");
15236
15242
  var import_runtime51 = require("@homebound/truss/runtime");
15237
15243
  var import_jsx_runtime80 = require("react/jsx-runtime");
@@ -15262,7 +15268,7 @@ function ToggleChipGroup(props) {
15262
15268
  const {
15263
15269
  groupProps,
15264
15270
  labelProps
15265
- } = (0, import_react_aria39.useCheckboxGroup)(props, state);
15271
+ } = (0, import_react_aria40.useCheckboxGroup)(props, state);
15266
15272
  const tid = useTestIds(props, "toggleChip");
15267
15273
  const labelSuffix = useLabelSuffix(required, false);
15268
15274
  return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { ...groupProps, ...(0, import_runtime51.trussProps)({
@@ -15306,7 +15312,7 @@ function ToggleChip2(props) {
15306
15312
  const ref = (0, import_react69.useRef)(null);
15307
15313
  const {
15308
15314
  inputProps
15309
- } = (0, import_react_aria39.useCheckboxGroupItem)({
15315
+ } = (0, import_react_aria40.useCheckboxGroupItem)({
15310
15316
  value,
15311
15317
  "aria-label": label,
15312
15318
  isReadOnly,
@@ -15315,7 +15321,7 @@ function ToggleChip2(props) {
15315
15321
  const {
15316
15322
  isFocusVisible,
15317
15323
  focusProps
15318
- } = (0, import_react_aria39.useFocusRing)();
15324
+ } = (0, import_react_aria40.useFocusRing)();
15319
15325
  const tooltip = resolveTooltip(disabled);
15320
15326
  const chipStateCss = isSelected ? {
15321
15327
  color: ["color_var", {
@@ -15363,7 +15369,7 @@ function ToggleChip2(props) {
15363
15369
  boxShadow: "bshFocus"
15364
15370
  } : {}
15365
15371
  }), "data-selected": isSelected, "data-disabled": isDisabled, "aria-disabled": isDisabled, ...others, children: [
15366
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_aria39.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("input", { ...inputProps, ...focusProps }) }),
15372
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_aria40.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("input", { ...inputProps, ...focusProps }) }),
15367
15373
  startAdornment,
15368
15374
  label
15369
15375
  ] })
@@ -17220,7 +17226,7 @@ function ToggleChips(props) {
17220
17226
  // src/components/Accordion.tsx
17221
17227
  var import_utils74 = require("@react-aria/utils");
17222
17228
  var import_react82 = require("react");
17223
- var import_react_aria40 = require("react-aria");
17229
+ var import_react_aria41 = require("react-aria");
17224
17230
  var import_runtime58 = require("@homebound/truss/runtime");
17225
17231
  var import_jsx_runtime89 = require("react/jsx-runtime");
17226
17232
  var __maybeInc12 = (inc) => {
@@ -17249,7 +17255,7 @@ function Accordion(props) {
17249
17255
  const {
17250
17256
  isFocusVisible,
17251
17257
  focusProps
17252
- } = (0, import_react_aria40.useFocusRing)();
17258
+ } = (0, import_react_aria41.useFocusRing)();
17253
17259
  const [contentEl, setContentEl] = (0, import_react82.useState)(null);
17254
17260
  const contentRef = (0, import_react82.useMemo)(() => ({
17255
17261
  current: contentEl
@@ -17554,12 +17560,12 @@ var variantStyles3 = {
17554
17560
 
17555
17561
  // src/components/BeamContext.tsx
17556
17562
  var import_react113 = require("react");
17557
- var import_react_aria46 = require("react-aria");
17563
+ var import_react_aria47 = require("react-aria");
17558
17564
 
17559
17565
  // src/components/Modal/Modal.tsx
17560
17566
  var import_utils78 = require("@react-aria/utils");
17561
17567
  var import_react87 = require("react");
17562
- var import_react_aria41 = require("react-aria");
17568
+ var import_react_aria42 = require("react-aria");
17563
17569
  var import_react_dom3 = require("react-dom");
17564
17570
 
17565
17571
  // src/components/Modal/useModal.tsx
@@ -17647,7 +17653,7 @@ function Modal(props) {
17647
17653
  const {
17648
17654
  overlayProps,
17649
17655
  underlayProps
17650
- } = (0, import_react_aria41.useOverlay)({
17656
+ } = (0, import_react_aria42.useOverlay)({
17651
17657
  ...props,
17652
17658
  isOpen: true,
17653
17659
  onClose: closeModal,
@@ -17658,11 +17664,11 @@ function Modal(props) {
17658
17664
  }, ref);
17659
17665
  const {
17660
17666
  modalProps
17661
- } = (0, import_react_aria41.useModal)();
17667
+ } = (0, import_react_aria42.useModal)();
17662
17668
  const {
17663
17669
  dialogProps,
17664
17670
  titleProps
17665
- } = (0, import_react_aria41.useDialog)({
17671
+ } = (0, import_react_aria42.useDialog)({
17666
17672
  role: "dialog"
17667
17673
  }, ref);
17668
17674
  const [[width2, height], setSize] = (0, import_react87.useState)(getSize(size));
@@ -17670,7 +17676,7 @@ function Modal(props) {
17670
17676
  const modalFooterRef = (0, import_react87.useRef)(null);
17671
17677
  const modalHeaderRef = (0, import_react87.useRef)(null);
17672
17678
  const testId = useTestIds({}, testIdPrefix);
17673
- (0, import_react_aria41.usePreventScroll)();
17679
+ (0, import_react_aria42.usePreventScroll)();
17674
17680
  const {
17675
17681
  sm
17676
17682
  } = useBreakpoint();
@@ -17704,7 +17710,7 @@ function Modal(props) {
17704
17710
  // eslint-disable-next-line react-hooks/exhaustive-deps
17705
17711
  [modalBodyRef, modalFooterRef, modalHeaderRef]
17706
17712
  );
17707
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria41.OverlayContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { ...(0, import_runtime60.trussProps)({
17713
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria42.OverlayContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { ...(0, import_runtime60.trussProps)({
17708
17714
  position: "fixed",
17709
17715
  top: "tp_0",
17710
17716
  bottom: "bot_0",
@@ -17717,7 +17723,7 @@ function Modal(props) {
17717
17723
  zIndex: ["z_var", {
17718
17724
  "--zIndex": (0, import_runtime60.maybeCssVar)(zIndices.modalUnderlay)
17719
17725
  }]
17720
- }), ...underlayProps, ...testId.underlay, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria41.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { ...(0, import_runtime60.trussProps)({
17726
+ }), ...underlayProps, ...testId.underlay, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_aria42.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { ...(0, import_runtime60.trussProps)({
17721
17727
  borderRadius: "br24",
17722
17728
  backgroundColor: "bgWhite",
17723
17729
  boxShadow: "bshModal",
@@ -18102,7 +18108,7 @@ function SuperDrawer() {
18102
18108
 
18103
18109
  // src/components/Layout/FormPageLayout.tsx
18104
18110
  var import_react99 = __toESM(require("react"), 1);
18105
- var import_react_aria43 = require("react-aria");
18111
+ var import_react_aria44 = require("react-aria");
18106
18112
 
18107
18113
  // src/forms/BoundCheckboxField.tsx
18108
18114
  var import_mobx_react2 = require("mobx-react");
@@ -18357,7 +18363,7 @@ var import_mobx_react8 = require("mobx-react");
18357
18363
 
18358
18364
  // src/inputs/IconCardGroup.tsx
18359
18365
  var import_react91 = require("react");
18360
- var import_react_aria42 = require("react-aria");
18366
+ var import_react_aria43 = require("react-aria");
18361
18367
  var import_runtime64 = require("@homebound/truss/runtime");
18362
18368
  var import_jsx_runtime105 = require("react/jsx-runtime");
18363
18369
  function IconCardGroup(props) {
@@ -18398,8 +18404,8 @@ function IconCardGroup(props) {
18398
18404
  const {
18399
18405
  labelProps,
18400
18406
  fieldProps: fieldPropsAria
18401
- } = (0, import_react_aria42.useField)(props);
18402
- const groupProps = (0, import_react_aria42.mergeProps)(tid, {
18407
+ } = (0, import_react_aria43.useField)(props);
18408
+ const groupProps = (0, import_react_aria43.mergeProps)(tid, {
18403
18409
  role: "group",
18404
18410
  "aria-disabled": isDisabled || void 0,
18405
18411
  ...fieldPropsAria
@@ -19790,13 +19796,13 @@ function SectionNavLink(props) {
19790
19796
  const {
19791
19797
  buttonProps,
19792
19798
  isPressed
19793
- } = (0, import_react_aria43.useButton)({
19799
+ } = (0, import_react_aria44.useButton)({
19794
19800
  onPress: handleNavClick
19795
19801
  }, buttonRef);
19796
19802
  const {
19797
19803
  isFocusVisible,
19798
19804
  focusProps
19799
- } = (0, import_react_aria43.useFocusRing)();
19805
+ } = (0, import_react_aria44.useFocusRing)();
19800
19806
  const {
19801
19807
  hoverProps,
19802
19808
  isHovered
@@ -19938,7 +19944,7 @@ var import_react109 = __toESM(require("react"), 1);
19938
19944
 
19939
19945
  // src/components/ButtonMenu.tsx
19940
19946
  var import_react101 = require("react");
19941
- var import_react_aria44 = require("react-aria");
19947
+ var import_react_aria45 = require("react-aria");
19942
19948
  var import_react_stately16 = require("react-stately");
19943
19949
  var import_jsx_runtime131 = require("react/jsx-runtime");
19944
19950
  function ButtonMenu(props) {
@@ -19950,7 +19956,7 @@ function ButtonMenu(props) {
19950
19956
  }
19951
19957
  const state = (0, import_react_stately16.useMenuTriggerState)({ isOpen: defaultOpen });
19952
19958
  const buttonRef = (0, import_react101.useRef)(null);
19953
- const { menuTriggerProps, menuProps } = (0, import_react_aria44.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
19959
+ const { menuTriggerProps, menuProps } = (0, import_react_aria45.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
19954
19960
  const tid = useTestIds(
19955
19961
  props,
19956
19962
  isTextButton(trigger) ? labelOr(trigger, "buttonMenu") : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name
@@ -20769,7 +20775,7 @@ var _FilterDropdownMenu = (0, import_react105.memo)(FilterDropdownMenu);
20769
20775
 
20770
20776
  // src/components/Table/components/EditColumnsButton.tsx
20771
20777
  var import_react106 = require("react");
20772
- var import_react_aria45 = require("react-aria");
20778
+ var import_react_aria46 = require("react-aria");
20773
20779
  var import_react_stately17 = require("react-stately");
20774
20780
  var import_runtime78 = require("@homebound/truss/runtime");
20775
20781
  var import_jsx_runtime146 = require("react/jsx-runtime");
@@ -20786,7 +20792,7 @@ function EditColumnsButton(props) {
20786
20792
  const buttonRef = (0, import_react106.useRef)(null);
20787
20793
  const {
20788
20794
  menuTriggerProps
20789
- } = (0, import_react_aria45.useMenuTrigger)({
20795
+ } = (0, import_react_aria46.useMenuTrigger)({
20790
20796
  isDisabled: !!disabled
20791
20797
  }, state, buttonRef);
20792
20798
  const tid = useTestIds(props, "kanban");
@@ -21555,7 +21561,7 @@ function BeamProvider({ children, documentTitleConfig, ...presentationProps }) {
21555
21561
  };
21556
21562
  }, [modalBodyDiv, modalFooterDiv, modalHeaderDiv, sdHeaderDiv]);
21557
21563
  const beamTree = /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(PresentationProvider, { ...presentationProps, children: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(RightPaneProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(SnackbarProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(ToastProvider, { children: [
21558
- /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(import_react_aria46.OverlayProvider, { children: [
21564
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(import_react_aria47.OverlayProvider, { children: [
21559
21565
  children,
21560
21566
  modalRef.current && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Modal, { ...modalRef.current })
21561
21567
  ] }),
@@ -21582,7 +21588,7 @@ function useBeamContext() {
21582
21588
 
21583
21589
  // src/components/ButtonDatePicker.tsx
21584
21590
  var import_react114 = require("react");
21585
- var import_react_aria47 = require("react-aria");
21591
+ var import_react_aria48 = require("react-aria");
21586
21592
  var import_react_stately18 = require("react-stately");
21587
21593
  var import_jsx_runtime159 = require("react/jsx-runtime");
21588
21594
  function ButtonDatePicker(props) {
@@ -21592,7 +21598,7 @@ function ButtonDatePicker(props) {
21592
21598
  const {
21593
21599
  menuTriggerProps,
21594
21600
  menuProps: { autoFocus: _af, ...menuProps }
21595
- } = (0, import_react_aria47.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
21601
+ } = (0, import_react_aria48.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
21596
21602
  const tid = useTestIds(
21597
21603
  props,
21598
21604
  isTextButton(trigger) ? defaultTestId(labelOr(trigger, "buttonDatePicker")) : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name
@@ -21612,7 +21618,7 @@ function ButtonDatePicker(props) {
21612
21618
 
21613
21619
  // src/components/ButtonGroup.tsx
21614
21620
  var import_react115 = require("react");
21615
- var import_react_aria48 = require("react-aria");
21621
+ var import_react_aria49 = require("react-aria");
21616
21622
  var import_runtime84 = require("@homebound/truss/runtime");
21617
21623
  var import_jsx_runtime160 = (
21618
21624
  // Disable the button if the ButtonGroup is disabled or if the current button is disabled.
@@ -21663,15 +21669,15 @@ function GroupButton(props) {
21663
21669
  const {
21664
21670
  buttonProps,
21665
21671
  isPressed
21666
- } = (0, import_react_aria48.useButton)(ariaProps, ref);
21672
+ } = (0, import_react_aria49.useButton)(ariaProps, ref);
21667
21673
  const {
21668
21674
  isFocusVisible,
21669
21675
  focusProps
21670
- } = (0, import_react_aria48.useFocusRing)();
21676
+ } = (0, import_react_aria49.useFocusRing)();
21671
21677
  const {
21672
21678
  hoverProps,
21673
21679
  isHovered
21674
- } = (0, import_react_aria48.useHover)(ariaProps);
21680
+ } = (0, import_react_aria49.useHover)(ariaProps);
21675
21681
  const tid = useTestIds(props);
21676
21682
  return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { ...(0, import_runtime84.trussProps)(getButtonStyles2(isFirst, isLast)), children: maybeTooltip({
21677
21683
  title: resolveTooltip(disabled, tooltip),
@@ -21778,7 +21784,7 @@ var iconStyles2 = {
21778
21784
 
21779
21785
  // src/components/Card.tsx
21780
21786
  var import_react117 = require("react");
21781
- var import_react_aria49 = require("react-aria");
21787
+ var import_react_aria50 = require("react-aria");
21782
21788
 
21783
21789
  // src/components/Tag.tsx
21784
21790
  var import_utils129 = require("@react-aria/utils");
@@ -21876,7 +21882,7 @@ function Card(props) {
21876
21882
  const {
21877
21883
  hoverProps,
21878
21884
  isHovered
21879
- } = (0, import_react_aria49.useHover)({
21885
+ } = (0, import_react_aria50.useHover)({
21880
21886
  isDisabled
21881
21887
  });
21882
21888
  const isList = type === "list";
@@ -22214,7 +22220,7 @@ var gridItemIdKey = "dndgrid-itemid";
22214
22220
  var gridCloneKey = "dndgrid-clone";
22215
22221
 
22216
22222
  // src/components/DnDGrid/DnDGridItemHandle.tsx
22217
- var import_react_aria50 = require("react-aria");
22223
+ var import_react_aria51 = require("react-aria");
22218
22224
  var import_runtime89 = require("@homebound/truss/runtime");
22219
22225
  var import_jsx_runtime165 = require("react/jsx-runtime");
22220
22226
  function DnDGridItemHandle(props) {
@@ -22227,11 +22233,11 @@ function DnDGridItemHandle(props) {
22227
22233
  const {
22228
22234
  focusProps,
22229
22235
  isFocusVisible
22230
- } = (0, import_react_aria50.useFocusRing)();
22236
+ } = (0, import_react_aria51.useFocusRing)();
22231
22237
  const {
22232
22238
  hoverProps,
22233
22239
  isHovered
22234
- } = (0, import_react_aria50.useHover)({});
22240
+ } = (0, import_react_aria51.useHover)({});
22235
22241
  const tid = useTestIds(props, "dragHandle");
22236
22242
  const iconButtonNormal = {
22237
22243
  height: "h_28px",
@@ -22264,7 +22270,7 @@ function DnDGridItemHandle(props) {
22264
22270
  ...isHovered && {
22265
22271
  backgroundColor: "bgGray200"
22266
22272
  }
22267
- }), ...(0, import_react_aria50.mergeProps)(dragHandleProps, focusProps, hoverProps), ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(Icon, { icon, inc: compact ? 2 : void 0, color }) });
22273
+ }), ...(0, import_react_aria51.mergeProps)(dragHandleProps, focusProps, hoverProps), ...tid, children: /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(Icon, { icon, inc: compact ? 2 : void 0, color }) });
22268
22274
  }
22269
22275
 
22270
22276
  // src/components/DnDGrid/useDnDGridItem.tsx
@@ -22504,7 +22510,7 @@ function ResponsiveGrid(props) {
22504
22510
  }
22505
22511
 
22506
22512
  // src/components/Grid/ResponsiveGridItem.tsx
22507
- var import_react_aria51 = require("react-aria");
22513
+ var import_react_aria52 = require("react-aria");
22508
22514
  var import_runtime92 = require("@homebound/truss/runtime");
22509
22515
  var import_jsx_runtime168 = require("react/jsx-runtime");
22510
22516
  function ResponsiveGridItem(props) {
@@ -22518,7 +22524,7 @@ function ResponsiveGridItem(props) {
22518
22524
  } = useResponsiveGridItem({
22519
22525
  colSpan
22520
22526
  });
22521
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { ...(0, import_react_aria51.mergeProps)(gridItemProps, (0, import_runtime92.trussProps)(gridItemStyles)), children });
22527
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { ...(0, import_react_aria52.mergeProps)(gridItemProps, (0, import_runtime92.trussProps)(gridItemStyles)), children });
22522
22528
  }
22523
22529
 
22524
22530
  // src/components/Grid/useResponsiveGrid.ts
@@ -22746,7 +22752,7 @@ var import_react129 = require("react");
22746
22752
 
22747
22753
  // src/components/AppNav/AppNavGroupTrigger.tsx
22748
22754
  var import_react127 = require("react");
22749
- var import_react_aria52 = require("react-aria");
22755
+ var import_react_aria53 = require("react-aria");
22750
22756
  var import_runtime96 = require("@homebound/truss/runtime");
22751
22757
  var import_jsx_runtime172 = require("react/jsx-runtime");
22752
22758
  function AppNavGroupTrigger(props) {
@@ -22761,25 +22767,25 @@ function AppNavGroupTrigger(props) {
22761
22767
  const {
22762
22768
  buttonProps,
22763
22769
  isPressed
22764
- } = (0, import_react_aria52.useButton)({
22770
+ } = (0, import_react_aria53.useButton)({
22765
22771
  onPress: onClick,
22766
22772
  elementType: "button"
22767
22773
  }, ref);
22768
22774
  const {
22769
22775
  hoverProps,
22770
22776
  isHovered
22771
- } = (0, import_react_aria52.useHover)({});
22777
+ } = (0, import_react_aria53.useHover)({});
22772
22778
  const {
22773
22779
  isFocusVisible,
22774
22780
  focusProps
22775
- } = (0, import_react_aria52.useFocusRing)();
22781
+ } = (0, import_react_aria53.useFocusRing)();
22776
22782
  const {
22777
22783
  baseStyles: baseStyles5,
22778
22784
  focusRingStyles: focusRingStyles2,
22779
22785
  hoverStyles: hoverStyles4,
22780
22786
  pressedStyles: pressedStyles2
22781
22787
  } = (0, import_react127.useMemo)(() => getNavLinkStyles("side"), []);
22782
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("button", { type: "button", ...(0, import_react_aria52.mergeProps)(buttonProps, focusProps, hoverProps, tid.trigger, {
22788
+ return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("button", { type: "button", ...(0, import_react_aria53.mergeProps)(buttonProps, focusProps, hoverProps, tid.trigger, {
22783
22789
  ref,
22784
22790
  "aria-expanded": expanded,
22785
22791
  "aria-controls": navGroupId,
@@ -23120,7 +23126,7 @@ function AppNavItems(props) {
23120
23126
  // src/components/Navbar/NavbarMobileMenu.tsx
23121
23127
  var import_framer_motion5 = require("framer-motion");
23122
23128
  var import_react131 = require("react");
23123
- var import_react_aria53 = require("react-aria");
23129
+ var import_react_aria54 = require("react-aria");
23124
23130
  var import_react_dom6 = require("react-dom");
23125
23131
  var import_react_router_dom6 = require("react-router-dom");
23126
23132
 
@@ -23148,7 +23154,7 @@ function NavbarMobileMenu(props) {
23148
23154
  pathname,
23149
23155
  search
23150
23156
  } = (0, import_react_router_dom6.useLocation)();
23151
- (0, import_react_aria53.usePreventScroll)({
23157
+ (0, import_react_aria54.usePreventScroll)({
23152
23158
  isDisabled: !isOpen
23153
23159
  });
23154
23160
  (0, import_react131.useEffect)(() => {
@@ -23189,7 +23195,7 @@ function NavbarMobileDrawer({
23189
23195
  ease: "linear",
23190
23196
  duration: 0.2
23191
23197
  }, onClick: onClose, ...tid.mobileMenuScrim }, "navbarMobileMenuScrim"),
23192
- /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_aria53.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(import_framer_motion5.motion.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...(0, import_runtime99.mergeProps)(void 0, overlayTopStyle, {
23198
+ /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(import_react_aria54.FocusScope, { autoFocus: true, contain: true, restoreFocus: true, children: /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(import_framer_motion5.motion.aside, { role: "dialog", "aria-modal": "true", "aria-label": "Navigation", ...(0, import_runtime99.mergeProps)(void 0, overlayTopStyle, {
23193
23199
  position: "fixed",
23194
23200
  bottom: "bottom0",
23195
23201
  left: "left0",
@@ -23314,7 +23320,7 @@ function NavbarUserMenu({
23314
23320
  // src/components/Tabs.tsx
23315
23321
  var import_change_case9 = require("change-case");
23316
23322
  var import_react132 = require("react");
23317
- var import_react_aria54 = require("react-aria");
23323
+ var import_react_aria55 = require("react-aria");
23318
23324
  var import_react_router = require("react-router");
23319
23325
  var import_react_router_dom7 = require("react-router-dom");
23320
23326
  var import_runtime101 = require("@homebound/truss/runtime");
@@ -23372,7 +23378,7 @@ function Tabs(props) {
23372
23378
  const {
23373
23379
  isFocusVisible,
23374
23380
  focusProps
23375
- } = (0, import_react_aria54.useFocusRing)();
23381
+ } = (0, import_react_aria55.useFocusRing)();
23376
23382
  const tid = useTestIds(others, "tabs");
23377
23383
  const [active, setActive] = (0, import_react132.useState)(selected);
23378
23384
  const ref = (0, import_react132.useRef)(null);
@@ -23436,7 +23442,7 @@ function TabImpl(props) {
23436
23442
  const {
23437
23443
  hoverProps,
23438
23444
  isHovered
23439
- } = (0, import_react_aria54.useHover)({
23445
+ } = (0, import_react_aria55.useHover)({
23440
23446
  isDisabled
23441
23447
  });
23442
23448
  const {
@@ -23465,7 +23471,7 @@ function TabImpl(props) {
23465
23471
  ...isFocusVisible && active && focusRingStyles2
23466
23472
  })
23467
23473
  };
23468
- const interactiveProps = (0, import_react_aria54.mergeProps)(focusProps, hoverProps, {
23474
+ const interactiveProps = (0, import_react_aria55.mergeProps)(focusProps, hoverProps, {
23469
23475
  onKeyUp,
23470
23476
  onBlur,
23471
23477
  ...isRouteTab(tab) ? {} : {
@@ -23480,7 +23486,7 @@ function TabImpl(props) {
23480
23486
  title: resolveTooltip(disabled),
23481
23487
  placement: "top",
23482
23488
  children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...tabProps, children: tabLabel })
23483
- }) : isRouteTab(tab) ? /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(import_react_router_dom7.Link, { ...(0, import_react_aria54.mergeProps)(tabProps, interactiveProps, {
23489
+ }) : isRouteTab(tab) ? /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(import_react_router_dom7.Link, { ...(0, import_react_aria55.mergeProps)(tabProps, interactiveProps, {
23484
23490
  className: "navLink"
23485
23491
  }), to: tab.href, children: tabLabel }) : /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("button", { ...{
23486
23492
  ...tabProps,
@@ -23997,7 +24003,7 @@ var snackbarId = 1;
23997
24003
 
23998
24004
  // src/components/Stepper.tsx
23999
24005
  var import_react136 = require("react");
24000
- var import_react_aria55 = require("react-aria");
24006
+ var import_react_aria56 = require("react-aria");
24001
24007
  var import_runtime105 = require("@homebound/truss/runtime");
24002
24008
  var import_jsx_runtime186 = require("react/jsx-runtime");
24003
24009
  var import_react137 = require("react");
@@ -24078,15 +24084,15 @@ function StepButton(props) {
24078
24084
  const {
24079
24085
  buttonProps,
24080
24086
  isPressed
24081
- } = (0, import_react_aria55.useButton)(ariaProps, ref);
24087
+ } = (0, import_react_aria56.useButton)(ariaProps, ref);
24082
24088
  const {
24083
24089
  isFocusVisible,
24084
24090
  focusProps
24085
- } = (0, import_react_aria55.useFocusRing)();
24091
+ } = (0, import_react_aria56.useFocusRing)();
24086
24092
  const {
24087
24093
  hoverProps,
24088
24094
  isHovered
24089
- } = (0, import_react_aria55.useHover)(ariaProps);
24095
+ } = (0, import_react_aria56.useHover)(ariaProps);
24090
24096
  const focusRingStyles2 = state === "error" ? {
24091
24097
  boxShadow: "bshDanger"
24092
24098
  } : {