@homebound/beam 3.33.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 +170 -170
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
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
|
|
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
|
|
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,
|
|
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,
|
|
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,
|
|
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)(
|
|
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
|
|
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
|
|
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,
|
|
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,
|
|
10258
|
+
} = (0, import_react_aria11.useFocusRing)(ariaProps);
|
|
10259
10259
|
const {
|
|
10260
10260
|
hoverProps,
|
|
10261
10261
|
isHovered: isHoveredFromEvents
|
|
10262
|
-
} = (0,
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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,
|
|
10388
|
+
} = (0, import_react_aria12.useFocusRing)(ariaProps);
|
|
10389
10389
|
const {
|
|
10390
10390
|
hoverProps,
|
|
10391
10391
|
isHovered
|
|
10392
|
-
} = (0,
|
|
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
|
|
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,
|
|
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,
|
|
10816
|
+
} = (0, import_react_aria13.useHover)({
|
|
10817
10817
|
isDisabled
|
|
10818
10818
|
});
|
|
10819
10819
|
const {
|
|
10820
10820
|
isFocusVisible,
|
|
10821
10821
|
focusProps
|
|
10822
|
-
} = (0,
|
|
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,
|
|
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,
|
|
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
|
|
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)(
|
|
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,
|
|
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,
|
|
11125
|
+
} = (0, import_react_aria17.useHover)({});
|
|
11126
11126
|
const tid = useTestIds(props);
|
|
11127
11127
|
const {
|
|
11128
11128
|
menuItemProps
|
|
11129
|
-
} = (0,
|
|
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
|
|
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,
|
|
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)(
|
|
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)(
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
11700
|
+
} = (0, import_react_aria20.useSelect)(selectHookProps, state, buttonRef);
|
|
11701
11701
|
const {
|
|
11702
11702
|
buttonProps
|
|
11703
|
-
} = (0,
|
|
11703
|
+
} = (0, import_react_aria20.useButton)({
|
|
11704
11704
|
...triggerProps,
|
|
11705
11705
|
isDisabled
|
|
11706
11706
|
}, buttonRef);
|
|
11707
11707
|
const {
|
|
11708
11708
|
overlayProps
|
|
11709
|
-
} = (0,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
|
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
|
|
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,
|
|
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)(
|
|
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,
|
|
12080
|
+
} = (0, import_react_aria22.useHover)({
|
|
12081
12081
|
isDisabled
|
|
12082
12082
|
});
|
|
12083
12083
|
const markIcon = isIndeterminate ? dashSmall : isSelected ? checkmarkSmall : "";
|
|
@@ -12112,7 +12112,7 @@ function TreeOption(props) {
|
|
|
12112
12112
|
const {
|
|
12113
12113
|
hoverProps,
|
|
12114
12114
|
isHovered
|
|
12115
|
-
} = (0,
|
|
12115
|
+
} = (0, import_react_aria23.useHover)({});
|
|
12116
12116
|
const tid = useTestIds(props, "treeOption");
|
|
12117
12117
|
const {
|
|
12118
12118
|
collapsedKeys,
|
|
@@ -12125,7 +12125,7 @@ function TreeOption(props) {
|
|
|
12125
12125
|
isDisabled,
|
|
12126
12126
|
isFocused,
|
|
12127
12127
|
isSelected
|
|
12128
|
-
} = (0,
|
|
12128
|
+
} = (0, import_react_aria23.useOption)({
|
|
12129
12129
|
key: item.key,
|
|
12130
12130
|
shouldSelectOnPressUp: true,
|
|
12131
12131
|
shouldFocusOnHover: false
|
|
@@ -12341,10 +12341,10 @@ function ListBoxSection(props) {
|
|
|
12341
12341
|
const {
|
|
12342
12342
|
itemProps,
|
|
12343
12343
|
groupProps
|
|
12344
|
-
} = (0,
|
|
12344
|
+
} = (0, import_react_aria24.useListBoxSection)(section);
|
|
12345
12345
|
const {
|
|
12346
12346
|
separatorProps
|
|
12347
|
-
} = (0,
|
|
12347
|
+
} = (0, import_react_aria24.useSeparator)({
|
|
12348
12348
|
elementType: "li"
|
|
12349
12349
|
});
|
|
12350
12350
|
const isPersistentSection = section.key !== state.collection.getFirstKey();
|
|
@@ -12402,7 +12402,7 @@ function ListBox(props) {
|
|
|
12402
12402
|
} = props;
|
|
12403
12403
|
const {
|
|
12404
12404
|
listBoxProps
|
|
12405
|
-
} = (0,
|
|
12405
|
+
} = (0, import_react_aria25.useListBox)({
|
|
12406
12406
|
disallowEmptySelection: true,
|
|
12407
12407
|
...props
|
|
12408
12408
|
}, state, listBoxRef);
|
|
@@ -12559,7 +12559,7 @@ function TreeSelectFieldBase(props) {
|
|
|
12559
12559
|
const initialOptions = Array.isArray(options) ? options : options.current;
|
|
12560
12560
|
const {
|
|
12561
12561
|
contains
|
|
12562
|
-
} = (0,
|
|
12562
|
+
} = (0, import_react_aria26.useFilter)({
|
|
12563
12563
|
sensitivity: "base"
|
|
12564
12564
|
});
|
|
12565
12565
|
const {
|
|
@@ -12825,7 +12825,7 @@ function TreeSelectFieldBase(props) {
|
|
|
12825
12825
|
inputProps,
|
|
12826
12826
|
listBoxProps,
|
|
12827
12827
|
labelProps
|
|
12828
|
-
} = (0,
|
|
12828
|
+
} = (0, import_react_aria26.useComboBox)({
|
|
12829
12829
|
...comboBoxProps,
|
|
12830
12830
|
inputRef,
|
|
12831
12831
|
buttonRef: triggerRef,
|
|
@@ -12834,13 +12834,13 @@ function TreeSelectFieldBase(props) {
|
|
|
12834
12834
|
}, state);
|
|
12835
12835
|
const {
|
|
12836
12836
|
buttonProps
|
|
12837
|
-
} = (0,
|
|
12837
|
+
} = (0, import_react_aria26.useButton)({
|
|
12838
12838
|
...triggerProps,
|
|
12839
12839
|
isDisabled: isDisabled || isReadOnly
|
|
12840
12840
|
}, triggerRef);
|
|
12841
12841
|
const {
|
|
12842
12842
|
overlayProps: positionProps
|
|
12843
|
-
} = (0,
|
|
12843
|
+
} = (0, import_react_aria26.useOverlayPosition)({
|
|
12844
12844
|
targetRef: inputWrapRef,
|
|
12845
12845
|
overlayRef: popoverRef,
|
|
12846
12846
|
scrollRef: listBoxRef,
|
|
@@ -13001,7 +13001,7 @@ function ComboBoxInput(props) {
|
|
|
13001
13001
|
}]
|
|
13002
13002
|
} : {}
|
|
13003
13003
|
}), "data-testid": "toggleListBox", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { icon: state.isOpen ? "chevronUp" : "chevronDown" }) }), inputProps: {
|
|
13004
|
-
...(0,
|
|
13004
|
+
...(0, import_react_aria27.mergeProps)(inputProps, {
|
|
13005
13005
|
"aria-invalid": Boolean(errorMsg),
|
|
13006
13006
|
onInput: () => state.open()
|
|
13007
13007
|
}),
|
|
@@ -13148,7 +13148,7 @@ function ComboBoxBase(props) {
|
|
|
13148
13148
|
const selectedOptions = (0, import_react52.useMemo)(() => options.filter((o) => values.includes(getOptionValue(o))), [options, values, getOptionValue]);
|
|
13149
13149
|
const {
|
|
13150
13150
|
contains
|
|
13151
|
-
} = (0,
|
|
13151
|
+
} = (0, import_react_aria28.useFilter)({
|
|
13152
13152
|
sensitivity: "base"
|
|
13153
13153
|
});
|
|
13154
13154
|
const isDisabled = !!disabled;
|
|
@@ -13288,7 +13288,7 @@ function ComboBoxBase(props) {
|
|
|
13288
13288
|
inputProps,
|
|
13289
13289
|
listBoxProps,
|
|
13290
13290
|
labelProps
|
|
13291
|
-
} = (0,
|
|
13291
|
+
} = (0, import_react_aria28.useComboBox)({
|
|
13292
13292
|
...comboBoxProps,
|
|
13293
13293
|
inputRef,
|
|
13294
13294
|
buttonRef: triggerRef,
|
|
@@ -13297,13 +13297,13 @@ function ComboBoxBase(props) {
|
|
|
13297
13297
|
}, state);
|
|
13298
13298
|
const {
|
|
13299
13299
|
buttonProps
|
|
13300
|
-
} = (0,
|
|
13300
|
+
} = (0, import_react_aria28.useButton)({
|
|
13301
13301
|
...triggerProps,
|
|
13302
13302
|
isDisabled: isDisabled || isReadOnly
|
|
13303
13303
|
}, triggerRef);
|
|
13304
13304
|
const {
|
|
13305
13305
|
overlayProps: positionProps
|
|
13306
|
-
} = (0,
|
|
13306
|
+
} = (0, import_react_aria28.useOverlayPosition)({
|
|
13307
13307
|
targetRef: inputWrapRef,
|
|
13308
13308
|
overlayRef: popoverRef,
|
|
13309
13309
|
scrollRef: listBoxRef,
|
|
@@ -13461,7 +13461,7 @@ function Autocomplete(props) {
|
|
|
13461
13461
|
const inputRef = (0, import_react53.useRef)(null);
|
|
13462
13462
|
const listBoxRef = (0, import_react53.useRef)(null);
|
|
13463
13463
|
const popoverRef = (0, import_react53.useRef)(null);
|
|
13464
|
-
const { inputProps, listBoxProps, labelProps } = (0,
|
|
13464
|
+
const { inputProps, listBoxProps, labelProps } = (0, import_react_aria29.useComboBox)(
|
|
13465
13465
|
{
|
|
13466
13466
|
...comboBoxProps,
|
|
13467
13467
|
inputRef,
|
|
@@ -13472,7 +13472,7 @@ function Autocomplete(props) {
|
|
|
13472
13472
|
},
|
|
13473
13473
|
state
|
|
13474
13474
|
);
|
|
13475
|
-
const { overlayProps: positionProps } = (0,
|
|
13475
|
+
const { overlayProps: positionProps } = (0, import_react_aria29.useOverlayPosition)({
|
|
13476
13476
|
targetRef: inputWrapRef,
|
|
13477
13477
|
overlayRef: popoverRef,
|
|
13478
13478
|
scrollRef: listBoxRef,
|
|
@@ -13528,7 +13528,7 @@ function Autocomplete(props) {
|
|
|
13528
13528
|
|
|
13529
13529
|
// src/inputs/Checkbox.tsx
|
|
13530
13530
|
var import_react54 = require("react");
|
|
13531
|
-
var
|
|
13531
|
+
var import_react_aria30 = require("react-aria");
|
|
13532
13532
|
var import_react_stately8 = require("react-stately");
|
|
13533
13533
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
13534
13534
|
function Checkbox(props) {
|
|
@@ -13539,7 +13539,7 @@ function Checkbox(props) {
|
|
|
13539
13539
|
const checkboxProps = { ...ariaProps, "aria-label": label };
|
|
13540
13540
|
const ref = (0, import_react54.useRef)(null);
|
|
13541
13541
|
const toggleState = (0, import_react_stately8.useToggleState)(ariaProps);
|
|
13542
|
-
const { inputProps } = (0,
|
|
13542
|
+
const { inputProps } = (0, import_react_aria30.useCheckbox)(checkboxProps, toggleState, ref);
|
|
13543
13543
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
13544
13544
|
CheckboxBase,
|
|
13545
13545
|
{
|
|
@@ -13557,7 +13557,7 @@ function Checkbox(props) {
|
|
|
13557
13557
|
|
|
13558
13558
|
// src/inputs/CheckboxGroup.tsx
|
|
13559
13559
|
var import_react55 = require("react");
|
|
13560
|
-
var
|
|
13560
|
+
var import_react_aria31 = require("react-aria");
|
|
13561
13561
|
var import_react_stately9 = require("react-stately");
|
|
13562
13562
|
var import_runtime43 = require("@homebound/truss/runtime");
|
|
13563
13563
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
@@ -13584,7 +13584,7 @@ function CheckboxGroup(props) {
|
|
|
13584
13584
|
const {
|
|
13585
13585
|
groupProps,
|
|
13586
13586
|
labelProps
|
|
13587
|
-
} = (0,
|
|
13587
|
+
} = (0, import_react_aria31.useCheckboxGroup)(props, state);
|
|
13588
13588
|
const tid = useTestIds(props);
|
|
13589
13589
|
const labelSuffix = useLabelSuffix(required, false);
|
|
13590
13590
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { ...groupProps, ...(0, import_runtime43.trussProps)({
|
|
@@ -13634,7 +13634,7 @@ function CheckboxGroupItem(props) {
|
|
|
13634
13634
|
const ref = (0, import_react55.useRef)(null);
|
|
13635
13635
|
const {
|
|
13636
13636
|
inputProps
|
|
13637
|
-
} = (0,
|
|
13637
|
+
} = (0, import_react_aria31.useCheckboxGroupItem)(checkboxProps, groupState, ref);
|
|
13638
13638
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CheckboxBase, { ariaProps, description, isDisabled, isIndeterminate, isSelected, inputProps, label, ...otherProps });
|
|
13639
13639
|
}
|
|
13640
13640
|
|
|
@@ -13750,7 +13750,7 @@ function DateFieldMock(props) {
|
|
|
13750
13750
|
|
|
13751
13751
|
// src/inputs/DateFields/DateFieldBase.tsx
|
|
13752
13752
|
var import_react57 = require("react");
|
|
13753
|
-
var
|
|
13753
|
+
var import_react_aria32 = require("react-aria");
|
|
13754
13754
|
var import_react_stately10 = require("react-stately");
|
|
13755
13755
|
var import_runtime44 = require("@homebound/truss/runtime");
|
|
13756
13756
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
@@ -13804,7 +13804,7 @@ function DateFieldBase(props) {
|
|
|
13804
13804
|
const {
|
|
13805
13805
|
labelProps,
|
|
13806
13806
|
inputProps
|
|
13807
|
-
} = (0,
|
|
13807
|
+
} = (0, import_react_aria32.useTextField)({
|
|
13808
13808
|
...textFieldProps,
|
|
13809
13809
|
// Setting `inputMode` to none. This disables the virtual keyboard from being triggered on touch devices
|
|
13810
13810
|
inputMode: "none",
|
|
@@ -13841,19 +13841,19 @@ function DateFieldBase(props) {
|
|
|
13841
13841
|
const {
|
|
13842
13842
|
triggerProps,
|
|
13843
13843
|
overlayProps
|
|
13844
|
-
} = (0,
|
|
13844
|
+
} = (0, import_react_aria32.useOverlayTrigger)({
|
|
13845
13845
|
type: "dialog"
|
|
13846
13846
|
}, state, buttonRef);
|
|
13847
13847
|
const {
|
|
13848
13848
|
buttonProps
|
|
13849
|
-
} = (0,
|
|
13849
|
+
} = (0, import_react_aria32.useButton)({
|
|
13850
13850
|
...triggerProps,
|
|
13851
13851
|
isDisabled: isDisabled || isReadOnly,
|
|
13852
13852
|
onPress: state.open
|
|
13853
13853
|
}, buttonRef);
|
|
13854
13854
|
const {
|
|
13855
13855
|
overlayProps: positionProps
|
|
13856
|
-
} = (0,
|
|
13856
|
+
} = (0, import_react_aria32.useOverlayPosition)({
|
|
13857
13857
|
targetRef: inputWrapRef,
|
|
13858
13858
|
overlayRef,
|
|
13859
13859
|
shouldFlip: true,
|
|
@@ -13945,7 +13945,7 @@ function DateFieldBase(props) {
|
|
|
13945
13945
|
...others
|
|
13946
13946
|
}
|
|
13947
13947
|
),
|
|
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)(
|
|
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) => {
|
|
13949
13949
|
setInputValue(formatDateRange(dr, dateFormats.short) ?? "");
|
|
13950
13950
|
onChange(dr);
|
|
13951
13951
|
}, useYearPicker: isRangeFilterField || useYearPicker, ...tid.datePicker }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DatePicker, { value: wipValue, disabledDays, onSelect: (d) => {
|
|
@@ -13987,7 +13987,7 @@ function DateRangeField(props) {
|
|
|
13987
13987
|
|
|
13988
13988
|
// src/inputs/IconCard.tsx
|
|
13989
13989
|
var import_react58 = require("react");
|
|
13990
|
-
var
|
|
13990
|
+
var import_react_aria33 = require("react-aria");
|
|
13991
13991
|
var import_react_stately11 = require("react-stately");
|
|
13992
13992
|
var import_runtime45 = require("@homebound/truss/runtime");
|
|
13993
13993
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
@@ -14014,13 +14014,13 @@ function IconCard(props) {
|
|
|
14014
14014
|
const {
|
|
14015
14015
|
hoverProps,
|
|
14016
14016
|
isHovered
|
|
14017
|
-
} = (0,
|
|
14017
|
+
} = (0, import_react_aria33.useHover)({
|
|
14018
14018
|
isDisabled
|
|
14019
14019
|
});
|
|
14020
14020
|
const toggleState = (0, import_react_stately11.useToggleState)(ariaProps);
|
|
14021
14021
|
const {
|
|
14022
14022
|
inputProps
|
|
14023
|
-
} = (0,
|
|
14023
|
+
} = (0, import_react_aria33.useCheckbox)(checkboxProps, toggleState, ref);
|
|
14024
14024
|
const styles = (0, import_react58.useMemo)(() => ({
|
|
14025
14025
|
...baseStyles3,
|
|
14026
14026
|
...isHovered && iconCardStylesHover,
|
|
@@ -14032,7 +14032,7 @@ function IconCard(props) {
|
|
|
14032
14032
|
title: resolveTooltip(isDisabled, tooltip),
|
|
14033
14033
|
placement: "top",
|
|
14034
14034
|
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("button", { ...(0, import_runtime45.trussProps)(styles), ...hoverProps, onClick: toggleState.toggle, disabled: isDisabled, ...tid, children: [
|
|
14035
|
-
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
14035
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_aria33.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("input", { ref, ...inputProps, ...tid.value }) }),
|
|
14036
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 */ }),
|
|
14037
14037
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { ...(0, import_runtime45.trussProps)({
|
|
14038
14038
|
fontWeight: "fw4",
|
|
@@ -14147,7 +14147,7 @@ function MultiSelectField(props) {
|
|
|
14147
14147
|
// src/inputs/NumberField.tsx
|
|
14148
14148
|
var import_number = require("@internationalized/number");
|
|
14149
14149
|
var import_react60 = require("react");
|
|
14150
|
-
var
|
|
14150
|
+
var import_react_aria34 = require("react-aria");
|
|
14151
14151
|
var import_react_stately12 = require("react-stately");
|
|
14152
14152
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
14153
14153
|
function NumberField(props) {
|
|
@@ -14199,7 +14199,7 @@ function NumberField(props) {
|
|
|
14199
14199
|
}), [truncate, numIntegerDigits, useGrouping, signDisplay, numFractionDigits]);
|
|
14200
14200
|
const {
|
|
14201
14201
|
locale
|
|
14202
|
-
} = (0,
|
|
14202
|
+
} = (0, import_react_aria34.useLocale)();
|
|
14203
14203
|
const formatOptions = (0, import_react60.useMemo)(() => {
|
|
14204
14204
|
if (numberFormatOptions !== void 0) {
|
|
14205
14205
|
return numberFormatOptions;
|
|
@@ -14290,7 +14290,7 @@ function NumberField(props) {
|
|
|
14290
14290
|
labelProps,
|
|
14291
14291
|
inputProps,
|
|
14292
14292
|
groupProps
|
|
14293
|
-
} = (0,
|
|
14293
|
+
} = (0, import_react_aria34.useNumberField)(useProps, state, inputRef);
|
|
14294
14294
|
if (readOnly && !inputRef.current) {
|
|
14295
14295
|
inputRef.current = document.createElement("input");
|
|
14296
14296
|
}
|
|
@@ -14305,7 +14305,7 @@ function NumberField(props) {
|
|
|
14305
14305
|
labelProps,
|
|
14306
14306
|
label,
|
|
14307
14307
|
required,
|
|
14308
|
-
inputProps: (0,
|
|
14308
|
+
inputProps: (0, import_react_aria34.mergeProps)(inputProps, {
|
|
14309
14309
|
size: sizeToContent ? String(inputProps.value ?? "").length || 1 : void 0
|
|
14310
14310
|
}),
|
|
14311
14311
|
onChange: (rawInputValue) => {
|
|
@@ -14338,7 +14338,7 @@ function formatValue(value, factor, numFractionDigits, numIntegerDigits, positiv
|
|
|
14338
14338
|
|
|
14339
14339
|
// src/inputs/RadioGroupField.tsx
|
|
14340
14340
|
var import_react61 = require("react");
|
|
14341
|
-
var
|
|
14341
|
+
var import_react_aria35 = require("react-aria");
|
|
14342
14342
|
var import_react_stately13 = require("react-stately");
|
|
14343
14343
|
var import_runtime47 = require("@homebound/truss/runtime");
|
|
14344
14344
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
@@ -14370,7 +14370,7 @@ function RadioGroupField(props) {
|
|
|
14370
14370
|
const {
|
|
14371
14371
|
labelProps,
|
|
14372
14372
|
radioGroupProps
|
|
14373
|
-
} = (0,
|
|
14373
|
+
} = (0, import_react_aria35.useRadioGroup)({
|
|
14374
14374
|
label,
|
|
14375
14375
|
isDisabled: disabled,
|
|
14376
14376
|
isRequired: required
|
|
@@ -14431,7 +14431,7 @@ function Radio(props) {
|
|
|
14431
14431
|
const {
|
|
14432
14432
|
inputProps,
|
|
14433
14433
|
isDisabled
|
|
14434
|
-
} = (0,
|
|
14434
|
+
} = (0, import_react_aria35.useRadio)({
|
|
14435
14435
|
value,
|
|
14436
14436
|
"aria-labelledby": labelId,
|
|
14437
14437
|
isDisabled: isOptionDisabled
|
|
@@ -14440,11 +14440,11 @@ function Radio(props) {
|
|
|
14440
14440
|
const {
|
|
14441
14441
|
focusProps,
|
|
14442
14442
|
isFocusVisible
|
|
14443
|
-
} = (0,
|
|
14443
|
+
} = (0, import_react_aria35.useFocusRing)();
|
|
14444
14444
|
const {
|
|
14445
14445
|
hoverProps,
|
|
14446
14446
|
isHovered
|
|
14447
|
-
} = (0,
|
|
14447
|
+
} = (0, import_react_aria35.useHover)({
|
|
14448
14448
|
isDisabled: disabled
|
|
14449
14449
|
});
|
|
14450
14450
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("label", { ...(0, import_runtime47.trussProps)({
|
|
@@ -14810,7 +14810,7 @@ function SelectField(props) {
|
|
|
14810
14810
|
|
|
14811
14811
|
// src/inputs/Switch.tsx
|
|
14812
14812
|
var import_react65 = require("react");
|
|
14813
|
-
var
|
|
14813
|
+
var import_react_aria36 = require("react-aria");
|
|
14814
14814
|
var import_runtime49 = require("@homebound/truss/runtime");
|
|
14815
14815
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
14816
14816
|
var __maybeInc8 = (inc) => {
|
|
@@ -14845,18 +14845,18 @@ function Switch(props) {
|
|
|
14845
14845
|
const ref = (0, import_react65.useRef)(null);
|
|
14846
14846
|
const {
|
|
14847
14847
|
inputProps
|
|
14848
|
-
} = (0,
|
|
14848
|
+
} = (0, import_react_aria36.useSwitch)({
|
|
14849
14849
|
...ariaProps,
|
|
14850
14850
|
"aria-label": label
|
|
14851
14851
|
}, state, ref);
|
|
14852
14852
|
const {
|
|
14853
14853
|
isFocusVisible: isFocusVisibleFromEvents,
|
|
14854
14854
|
focusProps
|
|
14855
|
-
} = (0,
|
|
14855
|
+
} = (0, import_react_aria36.useFocusRing)(otherProps);
|
|
14856
14856
|
const {
|
|
14857
14857
|
hoverProps,
|
|
14858
14858
|
isHovered: isHoveredFromEvents
|
|
14859
|
-
} = (0,
|
|
14859
|
+
} = (0, import_react_aria36.useHover)(ariaProps);
|
|
14860
14860
|
const isFocusVisible = __storyState?.focusVisible ?? isFocusVisibleFromEvents;
|
|
14861
14861
|
const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
|
|
14862
14862
|
const tooltip = resolveTooltip(disabled, props.tooltip);
|
|
@@ -14948,7 +14948,7 @@ function Switch(props) {
|
|
|
14948
14948
|
lineHeight: "lineHeight_1"
|
|
14949
14949
|
} : {}
|
|
14950
14950
|
} }),
|
|
14951
|
-
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
14951
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_aria36.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("input", { ref, ...inputProps, ...focusProps, ...tid }) })
|
|
14952
14952
|
] });
|
|
14953
14953
|
}
|
|
14954
14954
|
var toggleHeight = (isCompact) => isCompact ? 16 : 24;
|
|
@@ -14995,7 +14995,7 @@ function switchCircleSelectedStyles(isCompact) {
|
|
|
14995
14995
|
|
|
14996
14996
|
// src/inputs/TextAreaField.tsx
|
|
14997
14997
|
var import_react66 = require("react");
|
|
14998
|
-
var
|
|
14998
|
+
var import_react_aria37 = require("react-aria");
|
|
14999
14999
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
15000
15000
|
function TextAreaField(props) {
|
|
15001
15001
|
const {
|
|
@@ -15015,7 +15015,7 @@ function TextAreaField(props) {
|
|
|
15015
15015
|
const inputRef = (0, import_react66.useRef)(null);
|
|
15016
15016
|
const inputWrapRef = (0, import_react66.useRef)(null);
|
|
15017
15017
|
useGrowingTextField({ inputRef, inputWrapRef, value, maxLines });
|
|
15018
|
-
const { labelProps, inputProps } = (0,
|
|
15018
|
+
const { labelProps, inputProps } = (0, import_react_aria37.useTextField)(
|
|
15019
15019
|
{
|
|
15020
15020
|
...textFieldProps,
|
|
15021
15021
|
inputElementType: "textarea",
|
|
@@ -15038,7 +15038,7 @@ function TextAreaField(props) {
|
|
|
15038
15038
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15039
15039
|
TextFieldBase,
|
|
15040
15040
|
{
|
|
15041
|
-
...(0,
|
|
15041
|
+
...(0, import_react_aria37.mergeProps)(otherProps, { onBlur, onFocus }),
|
|
15042
15042
|
multiline: true,
|
|
15043
15043
|
labelProps,
|
|
15044
15044
|
inputProps,
|
|
@@ -15052,7 +15052,7 @@ function TextAreaField(props) {
|
|
|
15052
15052
|
|
|
15053
15053
|
// src/inputs/TextField.tsx
|
|
15054
15054
|
var import_react67 = require("react");
|
|
15055
|
-
var
|
|
15055
|
+
var import_react_aria38 = require("react-aria");
|
|
15056
15056
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
15057
15057
|
function TextField(props) {
|
|
15058
15058
|
const {
|
|
@@ -15080,7 +15080,7 @@ function TextField(props) {
|
|
|
15080
15080
|
value
|
|
15081
15081
|
};
|
|
15082
15082
|
const inputRef = (0, import_react67.useRef)(null);
|
|
15083
|
-
const { labelProps, inputProps } = (0,
|
|
15083
|
+
const { labelProps, inputProps } = (0, import_react_aria38.useTextField)(
|
|
15084
15084
|
{
|
|
15085
15085
|
...textFieldProps,
|
|
15086
15086
|
onKeyDown: (e) => {
|
|
@@ -15102,7 +15102,7 @@ function TextField(props) {
|
|
|
15102
15102
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15103
15103
|
TextFieldBase,
|
|
15104
15104
|
{
|
|
15105
|
-
...(0,
|
|
15105
|
+
...(0, import_react_aria38.mergeProps)(textFieldProps, { onBlur, onFocus }),
|
|
15106
15106
|
errorMsg,
|
|
15107
15107
|
required,
|
|
15108
15108
|
labelProps,
|
|
@@ -15116,7 +15116,7 @@ function TextField(props) {
|
|
|
15116
15116
|
|
|
15117
15117
|
// src/inputs/ToggleButton.tsx
|
|
15118
15118
|
var import_react68 = require("react");
|
|
15119
|
-
var
|
|
15119
|
+
var import_react_aria39 = require("react-aria");
|
|
15120
15120
|
var import_react_stately14 = require("react-stately");
|
|
15121
15121
|
var import_runtime50 = require("@homebound/truss/runtime");
|
|
15122
15122
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
@@ -15155,24 +15155,24 @@ function ToggleButton(props) {
|
|
|
15155
15155
|
const {
|
|
15156
15156
|
isPressed: isPressedFromEvents,
|
|
15157
15157
|
pressProps
|
|
15158
|
-
} = (0,
|
|
15158
|
+
} = (0, import_react_aria39.usePress)({
|
|
15159
15159
|
ref: labelRef,
|
|
15160
15160
|
isDisabled
|
|
15161
15161
|
});
|
|
15162
15162
|
const {
|
|
15163
15163
|
inputProps
|
|
15164
|
-
} = (0,
|
|
15164
|
+
} = (0, import_react_aria39.useSwitch)(ariaProps, state, ref);
|
|
15165
15165
|
const {
|
|
15166
15166
|
isFocusVisible: isFocusVisibleFromEvents,
|
|
15167
15167
|
focusProps
|
|
15168
|
-
} = (0,
|
|
15168
|
+
} = (0, import_react_aria39.useFocusRing)({
|
|
15169
15169
|
...otherProps,
|
|
15170
15170
|
within: true
|
|
15171
15171
|
});
|
|
15172
15172
|
const {
|
|
15173
15173
|
hoverProps,
|
|
15174
15174
|
isHovered: isHoveredFromEvents
|
|
15175
|
-
} = (0,
|
|
15175
|
+
} = (0, import_react_aria39.useHover)({
|
|
15176
15176
|
isDisabled
|
|
15177
15177
|
});
|
|
15178
15178
|
const isHovered = __storyState?.hovered ?? isHoveredFromEvents;
|
|
@@ -15221,7 +15221,7 @@ function ToggleButton(props) {
|
|
|
15221
15221
|
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("label", { ...labelAttrs, children: [
|
|
15222
15222
|
icon && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon, { icon }),
|
|
15223
15223
|
label,
|
|
15224
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15224
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react_aria39.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("input", { ref, ...inputProps, ...tid.value }) })
|
|
15225
15225
|
] })
|
|
15226
15226
|
});
|
|
15227
15227
|
}
|
|
@@ -15237,7 +15237,7 @@ var togglePressStyles = {
|
|
|
15237
15237
|
|
|
15238
15238
|
// src/inputs/ToggleChipGroup.tsx
|
|
15239
15239
|
var import_react69 = require("react");
|
|
15240
|
-
var
|
|
15240
|
+
var import_react_aria40 = require("react-aria");
|
|
15241
15241
|
var import_react_stately15 = require("react-stately");
|
|
15242
15242
|
var import_runtime51 = require("@homebound/truss/runtime");
|
|
15243
15243
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
@@ -15268,7 +15268,7 @@ function ToggleChipGroup(props) {
|
|
|
15268
15268
|
const {
|
|
15269
15269
|
groupProps,
|
|
15270
15270
|
labelProps
|
|
15271
|
-
} = (0,
|
|
15271
|
+
} = (0, import_react_aria40.useCheckboxGroup)(props, state);
|
|
15272
15272
|
const tid = useTestIds(props, "toggleChip");
|
|
15273
15273
|
const labelSuffix = useLabelSuffix(required, false);
|
|
15274
15274
|
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { ...groupProps, ...(0, import_runtime51.trussProps)({
|
|
@@ -15312,7 +15312,7 @@ function ToggleChip2(props) {
|
|
|
15312
15312
|
const ref = (0, import_react69.useRef)(null);
|
|
15313
15313
|
const {
|
|
15314
15314
|
inputProps
|
|
15315
|
-
} = (0,
|
|
15315
|
+
} = (0, import_react_aria40.useCheckboxGroupItem)({
|
|
15316
15316
|
value,
|
|
15317
15317
|
"aria-label": label,
|
|
15318
15318
|
isReadOnly,
|
|
@@ -15321,7 +15321,7 @@ function ToggleChip2(props) {
|
|
|
15321
15321
|
const {
|
|
15322
15322
|
isFocusVisible,
|
|
15323
15323
|
focusProps
|
|
15324
|
-
} = (0,
|
|
15324
|
+
} = (0, import_react_aria40.useFocusRing)();
|
|
15325
15325
|
const tooltip = resolveTooltip(disabled);
|
|
15326
15326
|
const chipStateCss = isSelected ? {
|
|
15327
15327
|
color: ["color_var", {
|
|
@@ -15369,7 +15369,7 @@ function ToggleChip2(props) {
|
|
|
15369
15369
|
boxShadow: "bshFocus"
|
|
15370
15370
|
} : {}
|
|
15371
15371
|
}), "data-selected": isSelected, "data-disabled": isDisabled, "aria-disabled": isDisabled, ...others, children: [
|
|
15372
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15372
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_aria40.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("input", { ...inputProps, ...focusProps }) }),
|
|
15373
15373
|
startAdornment,
|
|
15374
15374
|
label
|
|
15375
15375
|
] })
|
|
@@ -17226,7 +17226,7 @@ function ToggleChips(props) {
|
|
|
17226
17226
|
// src/components/Accordion.tsx
|
|
17227
17227
|
var import_utils74 = require("@react-aria/utils");
|
|
17228
17228
|
var import_react82 = require("react");
|
|
17229
|
-
var
|
|
17229
|
+
var import_react_aria41 = require("react-aria");
|
|
17230
17230
|
var import_runtime58 = require("@homebound/truss/runtime");
|
|
17231
17231
|
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
17232
17232
|
var __maybeInc12 = (inc) => {
|
|
@@ -17255,7 +17255,7 @@ function Accordion(props) {
|
|
|
17255
17255
|
const {
|
|
17256
17256
|
isFocusVisible,
|
|
17257
17257
|
focusProps
|
|
17258
|
-
} = (0,
|
|
17258
|
+
} = (0, import_react_aria41.useFocusRing)();
|
|
17259
17259
|
const [contentEl, setContentEl] = (0, import_react82.useState)(null);
|
|
17260
17260
|
const contentRef = (0, import_react82.useMemo)(() => ({
|
|
17261
17261
|
current: contentEl
|
|
@@ -17560,12 +17560,12 @@ var variantStyles3 = {
|
|
|
17560
17560
|
|
|
17561
17561
|
// src/components/BeamContext.tsx
|
|
17562
17562
|
var import_react113 = require("react");
|
|
17563
|
-
var
|
|
17563
|
+
var import_react_aria47 = require("react-aria");
|
|
17564
17564
|
|
|
17565
17565
|
// src/components/Modal/Modal.tsx
|
|
17566
17566
|
var import_utils78 = require("@react-aria/utils");
|
|
17567
17567
|
var import_react87 = require("react");
|
|
17568
|
-
var
|
|
17568
|
+
var import_react_aria42 = require("react-aria");
|
|
17569
17569
|
var import_react_dom3 = require("react-dom");
|
|
17570
17570
|
|
|
17571
17571
|
// src/components/Modal/useModal.tsx
|
|
@@ -17653,7 +17653,7 @@ function Modal(props) {
|
|
|
17653
17653
|
const {
|
|
17654
17654
|
overlayProps,
|
|
17655
17655
|
underlayProps
|
|
17656
|
-
} = (0,
|
|
17656
|
+
} = (0, import_react_aria42.useOverlay)({
|
|
17657
17657
|
...props,
|
|
17658
17658
|
isOpen: true,
|
|
17659
17659
|
onClose: closeModal,
|
|
@@ -17664,11 +17664,11 @@ function Modal(props) {
|
|
|
17664
17664
|
}, ref);
|
|
17665
17665
|
const {
|
|
17666
17666
|
modalProps
|
|
17667
|
-
} = (0,
|
|
17667
|
+
} = (0, import_react_aria42.useModal)();
|
|
17668
17668
|
const {
|
|
17669
17669
|
dialogProps,
|
|
17670
17670
|
titleProps
|
|
17671
|
-
} = (0,
|
|
17671
|
+
} = (0, import_react_aria42.useDialog)({
|
|
17672
17672
|
role: "dialog"
|
|
17673
17673
|
}, ref);
|
|
17674
17674
|
const [[width2, height], setSize] = (0, import_react87.useState)(getSize(size));
|
|
@@ -17676,7 +17676,7 @@ function Modal(props) {
|
|
|
17676
17676
|
const modalFooterRef = (0, import_react87.useRef)(null);
|
|
17677
17677
|
const modalHeaderRef = (0, import_react87.useRef)(null);
|
|
17678
17678
|
const testId = useTestIds({}, testIdPrefix);
|
|
17679
|
-
(0,
|
|
17679
|
+
(0, import_react_aria42.usePreventScroll)();
|
|
17680
17680
|
const {
|
|
17681
17681
|
sm
|
|
17682
17682
|
} = useBreakpoint();
|
|
@@ -17710,7 +17710,7 @@ function Modal(props) {
|
|
|
17710
17710
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17711
17711
|
[modalBodyRef, modalFooterRef, modalHeaderRef]
|
|
17712
17712
|
);
|
|
17713
|
-
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
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)({
|
|
17714
17714
|
position: "fixed",
|
|
17715
17715
|
top: "tp_0",
|
|
17716
17716
|
bottom: "bot_0",
|
|
@@ -17723,7 +17723,7 @@ function Modal(props) {
|
|
|
17723
17723
|
zIndex: ["z_var", {
|
|
17724
17724
|
"--zIndex": (0, import_runtime60.maybeCssVar)(zIndices.modalUnderlay)
|
|
17725
17725
|
}]
|
|
17726
|
-
}), ...underlayProps, ...testId.underlay, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
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)({
|
|
17727
17727
|
borderRadius: "br24",
|
|
17728
17728
|
backgroundColor: "bgWhite",
|
|
17729
17729
|
boxShadow: "bshModal",
|
|
@@ -18108,7 +18108,7 @@ function SuperDrawer() {
|
|
|
18108
18108
|
|
|
18109
18109
|
// src/components/Layout/FormPageLayout.tsx
|
|
18110
18110
|
var import_react99 = __toESM(require("react"), 1);
|
|
18111
|
-
var
|
|
18111
|
+
var import_react_aria44 = require("react-aria");
|
|
18112
18112
|
|
|
18113
18113
|
// src/forms/BoundCheckboxField.tsx
|
|
18114
18114
|
var import_mobx_react2 = require("mobx-react");
|
|
@@ -18363,7 +18363,7 @@ var import_mobx_react8 = require("mobx-react");
|
|
|
18363
18363
|
|
|
18364
18364
|
// src/inputs/IconCardGroup.tsx
|
|
18365
18365
|
var import_react91 = require("react");
|
|
18366
|
-
var
|
|
18366
|
+
var import_react_aria43 = require("react-aria");
|
|
18367
18367
|
var import_runtime64 = require("@homebound/truss/runtime");
|
|
18368
18368
|
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
18369
18369
|
function IconCardGroup(props) {
|
|
@@ -18404,8 +18404,8 @@ function IconCardGroup(props) {
|
|
|
18404
18404
|
const {
|
|
18405
18405
|
labelProps,
|
|
18406
18406
|
fieldProps: fieldPropsAria
|
|
18407
|
-
} = (0,
|
|
18408
|
-
const groupProps = (0,
|
|
18407
|
+
} = (0, import_react_aria43.useField)(props);
|
|
18408
|
+
const groupProps = (0, import_react_aria43.mergeProps)(tid, {
|
|
18409
18409
|
role: "group",
|
|
18410
18410
|
"aria-disabled": isDisabled || void 0,
|
|
18411
18411
|
...fieldPropsAria
|
|
@@ -19796,13 +19796,13 @@ function SectionNavLink(props) {
|
|
|
19796
19796
|
const {
|
|
19797
19797
|
buttonProps,
|
|
19798
19798
|
isPressed
|
|
19799
|
-
} = (0,
|
|
19799
|
+
} = (0, import_react_aria44.useButton)({
|
|
19800
19800
|
onPress: handleNavClick
|
|
19801
19801
|
}, buttonRef);
|
|
19802
19802
|
const {
|
|
19803
19803
|
isFocusVisible,
|
|
19804
19804
|
focusProps
|
|
19805
|
-
} = (0,
|
|
19805
|
+
} = (0, import_react_aria44.useFocusRing)();
|
|
19806
19806
|
const {
|
|
19807
19807
|
hoverProps,
|
|
19808
19808
|
isHovered
|
|
@@ -19944,7 +19944,7 @@ var import_react109 = __toESM(require("react"), 1);
|
|
|
19944
19944
|
|
|
19945
19945
|
// src/components/ButtonMenu.tsx
|
|
19946
19946
|
var import_react101 = require("react");
|
|
19947
|
-
var
|
|
19947
|
+
var import_react_aria45 = require("react-aria");
|
|
19948
19948
|
var import_react_stately16 = require("react-stately");
|
|
19949
19949
|
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
19950
19950
|
function ButtonMenu(props) {
|
|
@@ -19956,7 +19956,7 @@ function ButtonMenu(props) {
|
|
|
19956
19956
|
}
|
|
19957
19957
|
const state = (0, import_react_stately16.useMenuTriggerState)({ isOpen: defaultOpen });
|
|
19958
19958
|
const buttonRef = (0, import_react101.useRef)(null);
|
|
19959
|
-
const { menuTriggerProps, menuProps } = (0,
|
|
19959
|
+
const { menuTriggerProps, menuProps } = (0, import_react_aria45.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
|
|
19960
19960
|
const tid = useTestIds(
|
|
19961
19961
|
props,
|
|
19962
19962
|
isTextButton(trigger) ? labelOr(trigger, "buttonMenu") : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name
|
|
@@ -20775,7 +20775,7 @@ var _FilterDropdownMenu = (0, import_react105.memo)(FilterDropdownMenu);
|
|
|
20775
20775
|
|
|
20776
20776
|
// src/components/Table/components/EditColumnsButton.tsx
|
|
20777
20777
|
var import_react106 = require("react");
|
|
20778
|
-
var
|
|
20778
|
+
var import_react_aria46 = require("react-aria");
|
|
20779
20779
|
var import_react_stately17 = require("react-stately");
|
|
20780
20780
|
var import_runtime78 = require("@homebound/truss/runtime");
|
|
20781
20781
|
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
@@ -20792,7 +20792,7 @@ function EditColumnsButton(props) {
|
|
|
20792
20792
|
const buttonRef = (0, import_react106.useRef)(null);
|
|
20793
20793
|
const {
|
|
20794
20794
|
menuTriggerProps
|
|
20795
|
-
} = (0,
|
|
20795
|
+
} = (0, import_react_aria46.useMenuTrigger)({
|
|
20796
20796
|
isDisabled: !!disabled
|
|
20797
20797
|
}, state, buttonRef);
|
|
20798
20798
|
const tid = useTestIds(props, "kanban");
|
|
@@ -21561,7 +21561,7 @@ function BeamProvider({ children, documentTitleConfig, ...presentationProps }) {
|
|
|
21561
21561
|
};
|
|
21562
21562
|
}, [modalBodyDiv, modalFooterDiv, modalHeaderDiv, sdHeaderDiv]);
|
|
21563
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: [
|
|
21564
|
-
/* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(
|
|
21564
|
+
/* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(import_react_aria47.OverlayProvider, { children: [
|
|
21565
21565
|
children,
|
|
21566
21566
|
modalRef.current && /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Modal, { ...modalRef.current })
|
|
21567
21567
|
] }),
|
|
@@ -21588,7 +21588,7 @@ function useBeamContext() {
|
|
|
21588
21588
|
|
|
21589
21589
|
// src/components/ButtonDatePicker.tsx
|
|
21590
21590
|
var import_react114 = require("react");
|
|
21591
|
-
var
|
|
21591
|
+
var import_react_aria48 = require("react-aria");
|
|
21592
21592
|
var import_react_stately18 = require("react-stately");
|
|
21593
21593
|
var import_jsx_runtime159 = require("react/jsx-runtime");
|
|
21594
21594
|
function ButtonDatePicker(props) {
|
|
@@ -21598,7 +21598,7 @@ function ButtonDatePicker(props) {
|
|
|
21598
21598
|
const {
|
|
21599
21599
|
menuTriggerProps,
|
|
21600
21600
|
menuProps: { autoFocus: _af, ...menuProps }
|
|
21601
|
-
} = (0,
|
|
21601
|
+
} = (0, import_react_aria48.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
|
|
21602
21602
|
const tid = useTestIds(
|
|
21603
21603
|
props,
|
|
21604
21604
|
isTextButton(trigger) ? defaultTestId(labelOr(trigger, "buttonDatePicker")) : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name
|
|
@@ -21618,7 +21618,7 @@ function ButtonDatePicker(props) {
|
|
|
21618
21618
|
|
|
21619
21619
|
// src/components/ButtonGroup.tsx
|
|
21620
21620
|
var import_react115 = require("react");
|
|
21621
|
-
var
|
|
21621
|
+
var import_react_aria49 = require("react-aria");
|
|
21622
21622
|
var import_runtime84 = require("@homebound/truss/runtime");
|
|
21623
21623
|
var import_jsx_runtime160 = (
|
|
21624
21624
|
// Disable the button if the ButtonGroup is disabled or if the current button is disabled.
|
|
@@ -21669,15 +21669,15 @@ function GroupButton(props) {
|
|
|
21669
21669
|
const {
|
|
21670
21670
|
buttonProps,
|
|
21671
21671
|
isPressed
|
|
21672
|
-
} = (0,
|
|
21672
|
+
} = (0, import_react_aria49.useButton)(ariaProps, ref);
|
|
21673
21673
|
const {
|
|
21674
21674
|
isFocusVisible,
|
|
21675
21675
|
focusProps
|
|
21676
|
-
} = (0,
|
|
21676
|
+
} = (0, import_react_aria49.useFocusRing)();
|
|
21677
21677
|
const {
|
|
21678
21678
|
hoverProps,
|
|
21679
21679
|
isHovered
|
|
21680
|
-
} = (0,
|
|
21680
|
+
} = (0, import_react_aria49.useHover)(ariaProps);
|
|
21681
21681
|
const tid = useTestIds(props);
|
|
21682
21682
|
return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)("span", { ...(0, import_runtime84.trussProps)(getButtonStyles2(isFirst, isLast)), children: maybeTooltip({
|
|
21683
21683
|
title: resolveTooltip(disabled, tooltip),
|
|
@@ -21784,7 +21784,7 @@ var iconStyles2 = {
|
|
|
21784
21784
|
|
|
21785
21785
|
// src/components/Card.tsx
|
|
21786
21786
|
var import_react117 = require("react");
|
|
21787
|
-
var
|
|
21787
|
+
var import_react_aria50 = require("react-aria");
|
|
21788
21788
|
|
|
21789
21789
|
// src/components/Tag.tsx
|
|
21790
21790
|
var import_utils129 = require("@react-aria/utils");
|
|
@@ -21882,7 +21882,7 @@ function Card(props) {
|
|
|
21882
21882
|
const {
|
|
21883
21883
|
hoverProps,
|
|
21884
21884
|
isHovered
|
|
21885
|
-
} = (0,
|
|
21885
|
+
} = (0, import_react_aria50.useHover)({
|
|
21886
21886
|
isDisabled
|
|
21887
21887
|
});
|
|
21888
21888
|
const isList = type === "list";
|
|
@@ -22220,7 +22220,7 @@ var gridItemIdKey = "dndgrid-itemid";
|
|
|
22220
22220
|
var gridCloneKey = "dndgrid-clone";
|
|
22221
22221
|
|
|
22222
22222
|
// src/components/DnDGrid/DnDGridItemHandle.tsx
|
|
22223
|
-
var
|
|
22223
|
+
var import_react_aria51 = require("react-aria");
|
|
22224
22224
|
var import_runtime89 = require("@homebound/truss/runtime");
|
|
22225
22225
|
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
22226
22226
|
function DnDGridItemHandle(props) {
|
|
@@ -22233,11 +22233,11 @@ function DnDGridItemHandle(props) {
|
|
|
22233
22233
|
const {
|
|
22234
22234
|
focusProps,
|
|
22235
22235
|
isFocusVisible
|
|
22236
|
-
} = (0,
|
|
22236
|
+
} = (0, import_react_aria51.useFocusRing)();
|
|
22237
22237
|
const {
|
|
22238
22238
|
hoverProps,
|
|
22239
22239
|
isHovered
|
|
22240
|
-
} = (0,
|
|
22240
|
+
} = (0, import_react_aria51.useHover)({});
|
|
22241
22241
|
const tid = useTestIds(props, "dragHandle");
|
|
22242
22242
|
const iconButtonNormal = {
|
|
22243
22243
|
height: "h_28px",
|
|
@@ -22270,7 +22270,7 @@ function DnDGridItemHandle(props) {
|
|
|
22270
22270
|
...isHovered && {
|
|
22271
22271
|
backgroundColor: "bgGray200"
|
|
22272
22272
|
}
|
|
22273
|
-
}), ...(0,
|
|
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 }) });
|
|
22274
22274
|
}
|
|
22275
22275
|
|
|
22276
22276
|
// src/components/DnDGrid/useDnDGridItem.tsx
|
|
@@ -22510,7 +22510,7 @@ function ResponsiveGrid(props) {
|
|
|
22510
22510
|
}
|
|
22511
22511
|
|
|
22512
22512
|
// src/components/Grid/ResponsiveGridItem.tsx
|
|
22513
|
-
var
|
|
22513
|
+
var import_react_aria52 = require("react-aria");
|
|
22514
22514
|
var import_runtime92 = require("@homebound/truss/runtime");
|
|
22515
22515
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
22516
22516
|
function ResponsiveGridItem(props) {
|
|
@@ -22524,7 +22524,7 @@ function ResponsiveGridItem(props) {
|
|
|
22524
22524
|
} = useResponsiveGridItem({
|
|
22525
22525
|
colSpan
|
|
22526
22526
|
});
|
|
22527
|
-
return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { ...(0,
|
|
22527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { ...(0, import_react_aria52.mergeProps)(gridItemProps, (0, import_runtime92.trussProps)(gridItemStyles)), children });
|
|
22528
22528
|
}
|
|
22529
22529
|
|
|
22530
22530
|
// src/components/Grid/useResponsiveGrid.ts
|
|
@@ -22752,7 +22752,7 @@ var import_react129 = require("react");
|
|
|
22752
22752
|
|
|
22753
22753
|
// src/components/AppNav/AppNavGroupTrigger.tsx
|
|
22754
22754
|
var import_react127 = require("react");
|
|
22755
|
-
var
|
|
22755
|
+
var import_react_aria53 = require("react-aria");
|
|
22756
22756
|
var import_runtime96 = require("@homebound/truss/runtime");
|
|
22757
22757
|
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
22758
22758
|
function AppNavGroupTrigger(props) {
|
|
@@ -22767,25 +22767,25 @@ function AppNavGroupTrigger(props) {
|
|
|
22767
22767
|
const {
|
|
22768
22768
|
buttonProps,
|
|
22769
22769
|
isPressed
|
|
22770
|
-
} = (0,
|
|
22770
|
+
} = (0, import_react_aria53.useButton)({
|
|
22771
22771
|
onPress: onClick,
|
|
22772
22772
|
elementType: "button"
|
|
22773
22773
|
}, ref);
|
|
22774
22774
|
const {
|
|
22775
22775
|
hoverProps,
|
|
22776
22776
|
isHovered
|
|
22777
|
-
} = (0,
|
|
22777
|
+
} = (0, import_react_aria53.useHover)({});
|
|
22778
22778
|
const {
|
|
22779
22779
|
isFocusVisible,
|
|
22780
22780
|
focusProps
|
|
22781
|
-
} = (0,
|
|
22781
|
+
} = (0, import_react_aria53.useFocusRing)();
|
|
22782
22782
|
const {
|
|
22783
22783
|
baseStyles: baseStyles5,
|
|
22784
22784
|
focusRingStyles: focusRingStyles2,
|
|
22785
22785
|
hoverStyles: hoverStyles4,
|
|
22786
22786
|
pressedStyles: pressedStyles2
|
|
22787
22787
|
} = (0, import_react127.useMemo)(() => getNavLinkStyles("side"), []);
|
|
22788
|
-
return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("button", { type: "button", ...(0,
|
|
22788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)("button", { type: "button", ...(0, import_react_aria53.mergeProps)(buttonProps, focusProps, hoverProps, tid.trigger, {
|
|
22789
22789
|
ref,
|
|
22790
22790
|
"aria-expanded": expanded,
|
|
22791
22791
|
"aria-controls": navGroupId,
|
|
@@ -23126,7 +23126,7 @@ function AppNavItems(props) {
|
|
|
23126
23126
|
// src/components/Navbar/NavbarMobileMenu.tsx
|
|
23127
23127
|
var import_framer_motion5 = require("framer-motion");
|
|
23128
23128
|
var import_react131 = require("react");
|
|
23129
|
-
var
|
|
23129
|
+
var import_react_aria54 = require("react-aria");
|
|
23130
23130
|
var import_react_dom6 = require("react-dom");
|
|
23131
23131
|
var import_react_router_dom6 = require("react-router-dom");
|
|
23132
23132
|
|
|
@@ -23154,7 +23154,7 @@ function NavbarMobileMenu(props) {
|
|
|
23154
23154
|
pathname,
|
|
23155
23155
|
search
|
|
23156
23156
|
} = (0, import_react_router_dom6.useLocation)();
|
|
23157
|
-
(0,
|
|
23157
|
+
(0, import_react_aria54.usePreventScroll)({
|
|
23158
23158
|
isDisabled: !isOpen
|
|
23159
23159
|
});
|
|
23160
23160
|
(0, import_react131.useEffect)(() => {
|
|
@@ -23195,7 +23195,7 @@ function NavbarMobileDrawer({
|
|
|
23195
23195
|
ease: "linear",
|
|
23196
23196
|
duration: 0.2
|
|
23197
23197
|
}, onClick: onClose, ...tid.mobileMenuScrim }, "navbarMobileMenuScrim"),
|
|
23198
|
-
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
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, {
|
|
23199
23199
|
position: "fixed",
|
|
23200
23200
|
bottom: "bottom0",
|
|
23201
23201
|
left: "left0",
|
|
@@ -23320,7 +23320,7 @@ function NavbarUserMenu({
|
|
|
23320
23320
|
// src/components/Tabs.tsx
|
|
23321
23321
|
var import_change_case9 = require("change-case");
|
|
23322
23322
|
var import_react132 = require("react");
|
|
23323
|
-
var
|
|
23323
|
+
var import_react_aria55 = require("react-aria");
|
|
23324
23324
|
var import_react_router = require("react-router");
|
|
23325
23325
|
var import_react_router_dom7 = require("react-router-dom");
|
|
23326
23326
|
var import_runtime101 = require("@homebound/truss/runtime");
|
|
@@ -23378,7 +23378,7 @@ function Tabs(props) {
|
|
|
23378
23378
|
const {
|
|
23379
23379
|
isFocusVisible,
|
|
23380
23380
|
focusProps
|
|
23381
|
-
} = (0,
|
|
23381
|
+
} = (0, import_react_aria55.useFocusRing)();
|
|
23382
23382
|
const tid = useTestIds(others, "tabs");
|
|
23383
23383
|
const [active, setActive] = (0, import_react132.useState)(selected);
|
|
23384
23384
|
const ref = (0, import_react132.useRef)(null);
|
|
@@ -23442,7 +23442,7 @@ function TabImpl(props) {
|
|
|
23442
23442
|
const {
|
|
23443
23443
|
hoverProps,
|
|
23444
23444
|
isHovered
|
|
23445
|
-
} = (0,
|
|
23445
|
+
} = (0, import_react_aria55.useHover)({
|
|
23446
23446
|
isDisabled
|
|
23447
23447
|
});
|
|
23448
23448
|
const {
|
|
@@ -23471,7 +23471,7 @@ function TabImpl(props) {
|
|
|
23471
23471
|
...isFocusVisible && active && focusRingStyles2
|
|
23472
23472
|
})
|
|
23473
23473
|
};
|
|
23474
|
-
const interactiveProps = (0,
|
|
23474
|
+
const interactiveProps = (0, import_react_aria55.mergeProps)(focusProps, hoverProps, {
|
|
23475
23475
|
onKeyUp,
|
|
23476
23476
|
onBlur,
|
|
23477
23477
|
...isRouteTab(tab) ? {} : {
|
|
@@ -23486,7 +23486,7 @@ function TabImpl(props) {
|
|
|
23486
23486
|
title: resolveTooltip(disabled),
|
|
23487
23487
|
placement: "top",
|
|
23488
23488
|
children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { ...tabProps, children: tabLabel })
|
|
23489
|
-
}) : isRouteTab(tab) ? /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(import_react_router_dom7.Link, { ...(0,
|
|
23489
|
+
}) : isRouteTab(tab) ? /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(import_react_router_dom7.Link, { ...(0, import_react_aria55.mergeProps)(tabProps, interactiveProps, {
|
|
23490
23490
|
className: "navLink"
|
|
23491
23491
|
}), to: tab.href, children: tabLabel }) : /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("button", { ...{
|
|
23492
23492
|
...tabProps,
|
|
@@ -24003,7 +24003,7 @@ var snackbarId = 1;
|
|
|
24003
24003
|
|
|
24004
24004
|
// src/components/Stepper.tsx
|
|
24005
24005
|
var import_react136 = require("react");
|
|
24006
|
-
var
|
|
24006
|
+
var import_react_aria56 = require("react-aria");
|
|
24007
24007
|
var import_runtime105 = require("@homebound/truss/runtime");
|
|
24008
24008
|
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
24009
24009
|
var import_react137 = require("react");
|
|
@@ -24084,15 +24084,15 @@ function StepButton(props) {
|
|
|
24084
24084
|
const {
|
|
24085
24085
|
buttonProps,
|
|
24086
24086
|
isPressed
|
|
24087
|
-
} = (0,
|
|
24087
|
+
} = (0, import_react_aria56.useButton)(ariaProps, ref);
|
|
24088
24088
|
const {
|
|
24089
24089
|
isFocusVisible,
|
|
24090
24090
|
focusProps
|
|
24091
|
-
} = (0,
|
|
24091
|
+
} = (0, import_react_aria56.useFocusRing)();
|
|
24092
24092
|
const {
|
|
24093
24093
|
hoverProps,
|
|
24094
24094
|
isHovered
|
|
24095
|
-
} = (0,
|
|
24095
|
+
} = (0, import_react_aria56.useHover)(ariaProps);
|
|
24096
24096
|
const focusRingStyles2 = state === "error" ? {
|
|
24097
24097
|
boxShadow: "bshDanger"
|
|
24098
24098
|
} : {
|