@homebound/beam 2.413.0-alpha.6 → 2.413.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
@@ -7065,7 +7065,7 @@ function Button(props) {
7065
7065
  // Default the icon based on other properties.
7066
7066
  icon = download ? "download" : showExternalLinkIcon ? "linkExternal" : void 0,
7067
7067
  variant = "primary",
7068
- size = "md",
7068
+ size = "sm",
7069
7069
  buttonRef
7070
7070
  } = ariaProps;
7071
7071
  const ref = useGetRef(buttonRef);
@@ -7575,7 +7575,7 @@ var nonKindGridColumnKeys = [
7575
7575
  "isAction",
7576
7576
  "id",
7577
7577
  "canHide",
7578
- "initVisible",
7578
+ "initHidden",
7579
7579
  "expandColumns",
7580
7580
  "initExpanded",
7581
7581
  "hideOnExpand",
@@ -8704,7 +8704,7 @@ function RowImpl(props) {
8704
8704
  const cellElementWithHandle = import_react33.default.cloneElement(cellElement, {
8705
8705
  css: {
8706
8706
  ...cellElement.props.css || {},
8707
- ...Css.relative.$
8707
+ ...!maybeSticky && Css.relative.$
8708
8708
  },
8709
8709
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
8710
8710
  cellElement.props.children,
@@ -8834,7 +8834,7 @@ function TextFieldBase(props) {
8834
8834
  const fieldStyles = {
8835
8835
  container: Css.df.fdc.w100.maxw(fieldMaxWidth).relative.if(labelStyle === "left").maxw100.fdr.gap2.jcsb.aic.$,
8836
8836
  inputWrapper: {
8837
- ...Css[typeScale].df.aic.br8.pxPx(textFieldBasePadding).w100.bgColor(bgColor).gray900.if(contrast && !inputStylePalette).white.if(labelStyle === "left").w(labelLeftFieldWidth).$,
8837
+ ...Css[typeScale].df.aic.br4.pxPx(textFieldBasePadding).w100.bgColor(bgColor).gray900.if(contrast && !inputStylePalette).white.if(labelStyle === "left").w(labelLeftFieldWidth).$,
8838
8838
  // When borderless then perceived vertical alignments are misaligned. As there is no longer a border, then the field looks oddly indented.
8839
8839
  // This typically happens in tables when a column has a mix of static text (i.e. "roll up" rows and table headers) and input fields.
8840
8840
  // To remedy this perceived misalignment then we increase the width by the horizontal padding applied (16px), and set a negative margin left margin to re-center the field.
@@ -12855,13 +12855,13 @@ function SelectToggle({ id, disabled }) {
12855
12855
  // src/components/Table/utils/columns.tsx
12856
12856
  var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
12857
12857
  function column(columnDef) {
12858
- return { canHide: true, initVisible: true, ...columnDef };
12858
+ return { canHide: true, initHidden: false, ...columnDef };
12859
12859
  }
12860
12860
  function dateColumn(columnDef) {
12861
- return { canHide: true, initVisible: true, ...columnDef, align: "left" };
12861
+ return { canHide: true, initHidden: false, ...columnDef, align: "left" };
12862
12862
  }
12863
12863
  function numericColumn(columnDef) {
12864
- return { canHide: true, initVisible: true, ...columnDef, align: "right" };
12864
+ return { canHide: true, initHidden: false, ...columnDef, align: "right" };
12865
12865
  }
12866
12866
  function actionColumn(columnDef) {
12867
12867
  return { clientSideSort: false, ...columnDef, align: "center", isAction: true, wrapAction: false };
@@ -13057,7 +13057,7 @@ var ColumnState = class {
13057
13057
  constructor(states, storage, column2) {
13058
13058
  this.states = states;
13059
13059
  this.column = column2;
13060
- this.visible = storage.wasVisible(column2.id) ?? (column2.canHide ? column2.initVisible ?? false : true);
13060
+ this.visible = storage.wasVisible(column2.id) ?? (column2.canHide ? !(column2.initHidden ?? true) : true);
13061
13061
  if (this.visible && (storage.wasExpanded(column2.id) ?? column2.initExpanded)) {
13062
13062
  this.expanded = true;
13063
13063
  this.doExpand();
@@ -14605,7 +14605,7 @@ var variantStyles2 = {
14605
14605
 
14606
14606
  // src/components/BeamContext.tsx
14607
14607
  var import_react103 = require("react");
14608
- var import_react_aria45 = require("react-aria");
14608
+ var import_react_aria46 = require("react-aria");
14609
14609
 
14610
14610
  // src/components/Modal/Modal.tsx
14611
14611
  var import_utils72 = require("@react-aria/utils");
@@ -16247,14 +16247,27 @@ function Toast() {
16247
16247
  // src/components/Layout/PageHeaderBreadcrumbs.tsx
16248
16248
  var import_react90 = require("react");
16249
16249
  var import_react_router_dom4 = require("react-router-dom");
16250
- var import_jsx_runtime124 = require("@emotion/react/jsx-runtime");
16250
+ var import_jsx_runtime124 = (
16251
+ // Adding index to key to prevent rendering issues when multiple items have the same label
16252
+ require("@emotion/react/jsx-runtime")
16253
+ );
16251
16254
  function PageHeaderBreadcrumbs({ breadcrumb }) {
16252
16255
  const tids = useTestIds({}, "pageHeaderBreadcrumbs");
16253
- const breadcrumbs = Array.isArray(breadcrumb) ? breadcrumb : [breadcrumb];
16254
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { css: Css.df.aic.mbPx(4).$, ...tids, children: breadcrumbs.map((breadcrumb2, i) => /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_react90.Fragment, { children: [
16255
- i > 0 && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { css: Css.smSb.gray700.mr1.ml1.$, children: "/" }),
16256
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_react_router_dom4.Link, { to: breadcrumb2.href, css: Css.smSb.gray700.onHover.gray900.$, className: "navLink", ...tids.navLink, children: breadcrumb2.label })
16257
- ] }, `bc-${breadcrumb2.label}`)) });
16256
+ const breadcrumbs = (0, import_react90.useMemo)(() => Array.isArray(breadcrumb) ? breadcrumb : [breadcrumb], [breadcrumb]);
16257
+ const [collapsed, setCollapsed] = (0, import_react90.useState)(true);
16258
+ function renderBreadcrumb(bc, index, hideDivisor) {
16259
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_react90.Fragment, { children: [
16260
+ index > 0 && !hideDivisor && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { css: Css.smSb.gray700.mx1.myPx(2).$, children: "/" }),
16261
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_react_router_dom4.Link, { to: bc.href, css: Css.smSb.gray700.onHover.gray900.$, className: "navLink", ...tids.navLink, children: bc.label }),
16262
+ bc.right
16263
+ ] }, `${bc.label}-${index}`);
16264
+ }
16265
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("div", { css: Css.df.aic.mbPx(4).$, children: breadcrumbs.length > 3 && collapsed ? /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
16266
+ renderBreadcrumb(breadcrumbs[0], 0),
16267
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("button", { ...tids.expand, css: Css.gray700.pxPx(8).$, onClick: () => setCollapsed(false), children: "..." }),
16268
+ renderBreadcrumb(breadcrumbs[breadcrumbs.length - 2], breadcrumbs.length - 2, true),
16269
+ renderBreadcrumb(breadcrumbs[breadcrumbs.length - 1], breadcrumbs.length - 1)
16270
+ ] }) : breadcrumbs.map((bc, i) => renderBreadcrumb(bc, i)) });
16258
16271
  }
16259
16272
 
16260
16273
  // src/components/Layout/FormPageLayout.tsx
@@ -16512,6 +16525,7 @@ function isSelectionButtonMenuProps(props) {
16512
16525
 
16513
16526
  // src/components/Filters/FilterDropdownMenu.tsx
16514
16527
  var import_react97 = require("react");
16528
+ var import_react_aria45 = require("react-aria");
16515
16529
 
16516
16530
  // src/components/CountBadge.tsx
16517
16531
  var import_jsx_runtime127 = require("@emotion/react/jsx-runtime");
@@ -16566,6 +16580,7 @@ var DateFilter = class extends BaseFilter {
16566
16580
  /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
16567
16581
  SelectField,
16568
16582
  {
16583
+ compact: true,
16569
16584
  sizeToContent: true,
16570
16585
  options: [
16571
16586
  // Always show the 'Any' option
@@ -16588,6 +16603,7 @@ var DateFilter = class extends BaseFilter {
16588
16603
  /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
16589
16604
  DateField,
16590
16605
  {
16606
+ compact: true,
16591
16607
  labelStyle: "inline",
16592
16608
  value: value?.value ? new Date(value.value) : /* @__PURE__ */ new Date(),
16593
16609
  label: "Date",
@@ -16614,6 +16630,7 @@ var DateRangeFilter = class extends BaseFilter {
16614
16630
  /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
16615
16631
  DateRangeField,
16616
16632
  {
16633
+ compact: true,
16617
16634
  labelStyle: "inline",
16618
16635
  isRangeFilterField: true,
16619
16636
  placeholder: placeholderText,
@@ -16667,6 +16684,7 @@ var MultiFilter = class extends BaseFilter {
16667
16684
  MultiSelectField,
16668
16685
  {
16669
16686
  ...props,
16687
+ compact: !vertical,
16670
16688
  label: this.label,
16671
16689
  values: value || [],
16672
16690
  labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
@@ -16731,6 +16749,7 @@ var NumberRangeFilter = class extends BaseFilter {
16731
16749
  /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
16732
16750
  NumberField,
16733
16751
  {
16752
+ compact: true,
16734
16753
  sizeToContent: !inModal,
16735
16754
  labelStyle: "inline",
16736
16755
  clearable: true,
@@ -16748,6 +16767,7 @@ var NumberRangeFilter = class extends BaseFilter {
16748
16767
  /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
16749
16768
  NumberField,
16750
16769
  {
16770
+ compact: true,
16751
16771
  sizeToContent: !inModal,
16752
16772
  labelStyle: "inline",
16753
16773
  clearable: true,
@@ -16792,6 +16812,7 @@ var SingleFilter = class extends BaseFilter {
16792
16812
  options,
16793
16813
  getOptionValue: (o) => o === allOption ? void 0 : getOptionValue(o),
16794
16814
  getOptionLabel: (o) => o === allOption ? nothingSelectedText ?? "All" : getOptionLabel(o),
16815
+ compact: !vertical,
16795
16816
  value,
16796
16817
  label: this.label,
16797
16818
  labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
@@ -16818,6 +16839,7 @@ var TreeFilter = class extends BaseFilter {
16818
16839
  ...props,
16819
16840
  label: this.label,
16820
16841
  values: value,
16842
+ compact: !vertical,
16821
16843
  labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
16822
16844
  sizeToContent: !inModal && !vertical,
16823
16845
  onSelect: (options) => {
@@ -16843,6 +16865,7 @@ var BooleanFilter = class extends BaseFilter {
16843
16865
  SelectField,
16844
16866
  {
16845
16867
  ...props,
16868
+ compact: !vertical,
16846
16869
  label: this.label,
16847
16870
  value: String(value),
16848
16871
  labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
@@ -16992,6 +17015,7 @@ function Filters(props) {
16992
17015
  SelectField,
16993
17016
  {
16994
17017
  label: "Group by",
17018
+ compact: !vertical,
16995
17019
  labelStyle: !vertical ? "inline" : "above",
16996
17020
  sizeToContent: !vertical,
16997
17021
  options: groupBy.options,
@@ -17015,7 +17039,6 @@ function Filters(props) {
17015
17039
  Button,
17016
17040
  {
17017
17041
  label: "More Filters",
17018
- size: "md",
17019
17042
  endAdornment: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(CountBadge, { count: numModalFilters, hideIfZero: true }),
17020
17043
  variant: "secondary",
17021
17044
  onClick: () => openModal({
@@ -17025,7 +17048,7 @@ function Filters(props) {
17025
17048
  ...testId.moreFiltersBtn
17026
17049
  }
17027
17050
  ),
17028
- Object.keys(filter).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn }) })
17051
+ Object.keys(filter).length > 0 && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Button, { label: "Clear", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn }) })
17029
17052
  ]
17030
17053
  }
17031
17054
  );
@@ -17079,6 +17102,20 @@ function FilterDropdownMenu(props) {
17079
17102
  const { filter, onChange, filterDefs, groupBy } = props;
17080
17103
  const testId = useTestIds(props, filterTestIdPrefix);
17081
17104
  const [isOpen, setIsOpen] = (0, import_react97.useState)(false);
17105
+ const buttonRef = (0, import_react97.useRef)(null);
17106
+ const filterContentRef = (0, import_react97.useRef)(null);
17107
+ const { overlayProps } = (0, import_react_aria45.useOverlay)(
17108
+ {
17109
+ isOpen,
17110
+ onClose: () => setIsOpen(false),
17111
+ isDismissable: true,
17112
+ shouldCloseOnInteractOutside: (element) => {
17113
+ if (buttonRef.current?.contains(element)) return false;
17114
+ return true;
17115
+ }
17116
+ },
17117
+ filterContentRef
17118
+ );
17082
17119
  const activeFilterCount = (0, import_react97.useMemo)(() => getActiveFilterCount(filter), [filter]);
17083
17120
  const filterImpls = (0, import_react97.useMemo)(() => buildFilterImpls(filterDefs), [filterDefs]);
17084
17121
  const renderFilters = () => {
@@ -17088,7 +17125,7 @@ function FilterDropdownMenu(props) {
17088
17125
  return [...nonCheckbox, ...checkbox].map(([key, f]) => /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", { children: f.render(filter[key], (value) => onChange(updateFilter(filter, key, value)), testId, false, false) }, key));
17089
17126
  };
17090
17127
  return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_jsx_runtime140.Fragment, { children: [
17091
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
17128
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)("div", { ref: buttonRef, children: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
17092
17129
  Button,
17093
17130
  {
17094
17131
  label: "Filter",
@@ -17102,12 +17139,13 @@ function FilterDropdownMenu(props) {
17102
17139
  onClick: () => setIsOpen(!isOpen),
17103
17140
  ...testId.button
17104
17141
  }
17105
- ),
17106
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", { css: Css.df.aic.fww.gap1.order(1).$, children: [
17142
+ ) }),
17143
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", { ref: filterContentRef, ...overlayProps, css: Css.df.aic.fww.gap1.order(1).$, children: [
17107
17144
  groupBy && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
17108
17145
  SelectField,
17109
17146
  {
17110
17147
  label: "Group by",
17148
+ compact: true,
17111
17149
  labelStyle: "inline",
17112
17150
  sizeToContent: true,
17113
17151
  options: groupBy.options,
@@ -17118,7 +17156,7 @@ function FilterDropdownMenu(props) {
17118
17156
  }
17119
17157
  ),
17120
17158
  renderFilters(),
17121
- activeFilterCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn })
17159
+ activeFilterCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn })
17122
17160
  ] }),
17123
17161
  !isOpen && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
17124
17162
  FilterChips,
@@ -17170,7 +17208,7 @@ function FilterChips({
17170
17208
  if (chips.length === 0) return null;
17171
17209
  return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", { css: Css.df.gap1.fww.aic.order(1).$, children: [
17172
17210
  chips,
17173
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: onClear, ...testId.clearBtn })
17211
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", variant: "tertiary", onClick: onClear, ...testId.clearBtn })
17174
17212
  ] });
17175
17213
  }
17176
17214
  function buildFilterImpls(filterDefs) {
@@ -17721,7 +17759,7 @@ function BeamProvider({ children, ...presentationProps }) {
17721
17759
  };
17722
17760
  }, [modalBodyDiv, modalFooterDiv, modalHeaderDiv, sdHeaderDiv]);
17723
17761
  return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(BeamContext.Provider, { value: { ...context }, children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(PresentationProvider, { ...presentationProps, children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(RightPaneProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(AutoSaveStatusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(SnackbarProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(ToastProvider, { children: [
17724
- /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(import_react_aria45.OverlayProvider, { children: [
17762
+ /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(import_react_aria46.OverlayProvider, { children: [
17725
17763
  children,
17726
17764
  modalRef.current && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(Modal, { ...modalRef.current })
17727
17765
  ] }),
@@ -17747,14 +17785,14 @@ function useBeamContext() {
17747
17785
 
17748
17786
  // src/components/ButtonDatePicker.tsx
17749
17787
  var import_react104 = require("react");
17750
- var import_react_aria46 = require("react-aria");
17788
+ var import_react_aria47 = require("react-aria");
17751
17789
  var import_react_stately18 = require("react-stately");
17752
17790
  var import_jsx_runtime151 = require("@emotion/react/jsx-runtime");
17753
17791
  function ButtonDatePicker(props) {
17754
17792
  const { defaultOpen, disabled, trigger, onSelect, ...datePickerProps } = props;
17755
17793
  const state = (0, import_react_stately18.useMenuTriggerState)({ isOpen: defaultOpen });
17756
17794
  const buttonRef = (0, import_react104.useRef)(null);
17757
- const { menuTriggerProps, menuProps } = (0, import_react_aria46.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
17795
+ const { menuTriggerProps, menuProps } = (0, import_react_aria47.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
17758
17796
  const tid = useTestIds(
17759
17797
  props,
17760
17798
  isTextButton(trigger) ? defaultTestId(labelOr(trigger, "buttonDatePicker")) : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name
@@ -17774,7 +17812,7 @@ function ButtonDatePicker(props) {
17774
17812
 
17775
17813
  // src/components/ButtonGroup.tsx
17776
17814
  var import_react105 = require("react");
17777
- var import_react_aria47 = require("react-aria");
17815
+ var import_react_aria48 = require("react-aria");
17778
17816
  var import_jsx_runtime152 = (
17779
17817
  // Disable the button if the ButtonGroup is disabled or if the current button is disabled.
17780
17818
  require("@emotion/react/jsx-runtime")
@@ -17791,9 +17829,9 @@ function GroupButton(props) {
17791
17829
  const { icon, iconInc, iconColor, text, active, onClick: onPress, disabled, size, tooltip, ...otherProps } = props;
17792
17830
  const ariaProps = { onPress, isDisabled: !!disabled, ...otherProps };
17793
17831
  const ref = (0, import_react105.useRef)(null);
17794
- const { buttonProps, isPressed } = (0, import_react_aria47.useButton)(ariaProps, ref);
17795
- const { isFocusVisible, focusProps } = (0, import_react_aria47.useFocusRing)();
17796
- const { hoverProps, isHovered } = (0, import_react_aria47.useHover)(ariaProps);
17832
+ const { buttonProps, isPressed } = (0, import_react_aria48.useButton)(ariaProps, ref);
17833
+ const { isFocusVisible, focusProps } = (0, import_react_aria48.useFocusRing)();
17834
+ const { hoverProps, isHovered } = (0, import_react_aria48.useHover)(ariaProps);
17797
17835
  const tid = useTestIds(props);
17798
17836
  return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { css: getButtonStyles2(), children: maybeTooltip({
17799
17837
  title: resolveTooltip(disabled, tooltip),
@@ -17850,7 +17888,7 @@ var iconStyles2 = {
17850
17888
 
17851
17889
  // src/components/Card.tsx
17852
17890
  var import_react107 = require("react");
17853
- var import_react_aria48 = require("react-aria");
17891
+ var import_react_aria49 = require("react-aria");
17854
17892
 
17855
17893
  // src/components/Tag.tsx
17856
17894
  var import_utils116 = require("@react-aria/utils");
@@ -17909,7 +17947,7 @@ function Card(props) {
17909
17947
  tag
17910
17948
  } = props;
17911
17949
  const tid = useTestIds(props, "card");
17912
- const { hoverProps, isHovered } = (0, import_react_aria48.useHover)({ isDisabled });
17950
+ const { hoverProps, isHovered } = (0, import_react_aria49.useHover)({ isDisabled });
17913
17951
  const isList = type === "list";
17914
17952
  const imgHeight = isList ? 96 : bordered ? 224 : 256;
17915
17953
  const styles = (0, import_react107.useMemo)(
@@ -18184,12 +18222,12 @@ var gridCloneKey = "dndgrid-clone";
18184
18222
  var activeGridItemClass = "dndgrid-active";
18185
18223
 
18186
18224
  // src/components/DnDGrid/DnDGridItemHandle.tsx
18187
- var import_react_aria49 = require("react-aria");
18225
+ var import_react_aria50 = require("react-aria");
18188
18226
  var import_jsx_runtime157 = require("@emotion/react/jsx-runtime");
18189
18227
  function DnDGridItemHandle(props) {
18190
18228
  const { dragHandleProps, icon = "move", compact = false, color } = props;
18191
- const { focusProps, isFocusVisible } = (0, import_react_aria49.useFocusRing)();
18192
- const { hoverProps, isHovered } = (0, import_react_aria49.useHover)({});
18229
+ const { focusProps, isFocusVisible } = (0, import_react_aria50.useFocusRing)();
18230
+ const { hoverProps, isHovered } = (0, import_react_aria50.useHover)({});
18193
18231
  const tid = useTestIds(props, "dragHandle");
18194
18232
  const iconButtonNormal2 = Css.hPx(28).wPx(28).br8.bw2.$;
18195
18233
  const iconButtonCompact2 = Css.hPx(18).wPx(18).br4.bw1.$;
@@ -18201,7 +18239,7 @@ function DnDGridItemHandle(props) {
18201
18239
  ...Css.cursor("grab").bcTransparent.bss.bgTransparent.outline0.dif.aic.jcc.transition.if(isFocusVisible).bcBlue700.$,
18202
18240
  ...isHovered && Css.bgGray200.$
18203
18241
  },
18204
- ...(0, import_react_aria49.mergeProps)(dragHandleProps, focusProps, hoverProps),
18242
+ ...(0, import_react_aria50.mergeProps)(dragHandleProps, focusProps, hoverProps),
18205
18243
  ...tid,
18206
18244
  children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(Icon, { icon, inc: compact ? 2 : void 0, color })
18207
18245
  }
@@ -18515,7 +18553,7 @@ var snackbarId = 1;
18515
18553
 
18516
18554
  // src/components/Stepper.tsx
18517
18555
  var import_react116 = require("react");
18518
- var import_react_aria50 = require("react-aria");
18556
+ var import_react_aria51 = require("react-aria");
18519
18557
  var import_jsx_runtime163 = require("@emotion/react/jsx-runtime");
18520
18558
  function Stepper(props) {
18521
18559
  const { steps, currentStep, onChange } = props;
@@ -18559,9 +18597,9 @@ function StepButton(props) {
18559
18597
  const { label, disabled, state, isCurrent, onClick } = props;
18560
18598
  const ariaProps = { onPress: onClick, isDisabled: disabled };
18561
18599
  const ref = (0, import_react116.useRef)(null);
18562
- const { buttonProps, isPressed } = (0, import_react_aria50.useButton)(ariaProps, ref);
18563
- const { isFocusVisible, focusProps } = (0, import_react_aria50.useFocusRing)();
18564
- const { hoverProps, isHovered } = (0, import_react_aria50.useHover)(ariaProps);
18600
+ const { buttonProps, isPressed } = (0, import_react_aria51.useButton)(ariaProps, ref);
18601
+ const { isFocusVisible, focusProps } = (0, import_react_aria51.useFocusRing)();
18602
+ const { hoverProps, isHovered } = (0, import_react_aria51.useHover)(ariaProps);
18565
18603
  const focusRingStyles2 = state === "error" ? Css.bshDanger.$ : Css.bshFocus.$;
18566
18604
  const tid = useTestIds(props, "stepButton");
18567
18605
  return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(
@@ -18848,7 +18886,7 @@ var SuperDrawerContent = ({ children, actions }) => {
18848
18886
  // src/components/Tabs.tsx
18849
18887
  var import_change_case7 = require("change-case");
18850
18888
  var import_react118 = require("react");
18851
- var import_react_aria51 = require("react-aria");
18889
+ var import_react_aria52 = require("react-aria");
18852
18890
  var import_react_router2 = require("react-router");
18853
18891
  var import_react_router_dom5 = require("react-router-dom");
18854
18892
  var import_jsx_runtime168 = require("@emotion/react/jsx-runtime");
@@ -18891,7 +18929,7 @@ function Tabs(props) {
18891
18929
  const selected = isRouteTabs(props) ? uniqueTabValue(
18892
18930
  props.tabs.find((t) => !!(0, import_react_router2.matchPath)(location.pathname, { path: t.path, exact: true })) || props.tabs[0]
18893
18931
  ) : props.selected;
18894
- const { isFocusVisible, focusProps } = (0, import_react_aria51.useFocusRing)();
18932
+ const { isFocusVisible, focusProps } = (0, import_react_aria52.useFocusRing)();
18895
18933
  const tid = useTestIds(others, "tabs");
18896
18934
  const [active, setActive] = (0, import_react118.useState)(selected);
18897
18935
  const ref = (0, import_react118.useRef)(null);
@@ -18936,7 +18974,7 @@ function TabImpl(props) {
18936
18974
  const { tab, onClick, active, onKeyUp, onBlur, focusProps, isFocusVisible = false, ...others } = props;
18937
18975
  const { disabled = false, name: label, icon, endAdornment } = tab;
18938
18976
  const isDisabled = !!disabled;
18939
- const { hoverProps, isHovered } = (0, import_react_aria51.useHover)({ isDisabled });
18977
+ const { hoverProps, isHovered } = (0, import_react_aria52.useHover)({ isDisabled });
18940
18978
  const { baseStyles: baseStyles5, activeStyles: activeStyles4, focusRingStyles: focusRingStyles2, hoverStyles: hoverStyles4, disabledStyles: disabledStyles4, activeHoverStyles } = (0, import_react118.useMemo)(
18941
18979
  () => getTabStyles(),
18942
18980
  []
@@ -18959,7 +18997,7 @@ function TabImpl(props) {
18959
18997
  ...isFocusVisible && active && focusRingStyles2
18960
18998
  }
18961
18999
  };
18962
- const interactiveProps = (0, import_react_aria51.mergeProps)(focusProps, hoverProps, {
19000
+ const interactiveProps = (0, import_react_aria52.mergeProps)(focusProps, hoverProps, {
18963
19001
  onKeyUp,
18964
19002
  onBlur,
18965
19003
  ...isRouteTab(tab) ? {} : { onClick: () => onClick(tab.value) }