@homebound/beam 2.413.0 → 2.414.0-alpha.2
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 +38 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +44 -71
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 = "
|
|
7068
|
+
size = "md",
|
|
7069
7069
|
buttonRef
|
|
7070
7070
|
} = ariaProps;
|
|
7071
7071
|
const ref = useGetRef(buttonRef);
|
|
@@ -7203,7 +7203,7 @@ var variantStyles = (contrast) => ({
|
|
|
7203
7203
|
});
|
|
7204
7204
|
var sizeStyles = {
|
|
7205
7205
|
sm: Css.hPx(32).pxPx(12).$,
|
|
7206
|
-
md: Css.hPx(40).
|
|
7206
|
+
md: Css.hPx(40).px2.$,
|
|
7207
7207
|
lg: Css.hPx(48).px3.$
|
|
7208
7208
|
};
|
|
7209
7209
|
var iconStyles = {
|
|
@@ -8635,10 +8635,10 @@ function RowImpl(props) {
|
|
|
8635
8635
|
const maybeSticky = (isGridCellContent(maybeContent) && maybeContent.sticky || column2.sticky) ?? void 0;
|
|
8636
8636
|
const maybeStickyColumnStyles = maybeSticky && columnSizes ? {
|
|
8637
8637
|
...Css.sticky.z(zIndices.stickyColumns).bgWhite.$,
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
).$ : {}
|
|
8638
|
+
// For flex layouts, all sticky columns should have left/right: 0
|
|
8639
|
+
// The flex layout handles their adjacency based on their widths
|
|
8640
|
+
...maybeSticky === "left" ? Css.left(0).$ : {},
|
|
8641
|
+
...maybeSticky === "right" ? Css.right(0).$ : {}
|
|
8642
8642
|
} : {};
|
|
8643
8643
|
minStickyLeftOffset += maybeSticky === "left" ? parseInt(columnSizes[columnIndex].replace("px", ""), 10) : 0;
|
|
8644
8644
|
const cellId = `${row.kind}_${row.id}_${column2.id}`;
|
|
@@ -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.
|
|
8837
|
+
...Css[typeScale].df.aic.br8.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.
|
|
@@ -8858,16 +8858,14 @@ function TextFieldBase(props) {
|
|
|
8858
8858
|
...labelStyle === "hidden" && Css.mhPx(fieldHeight - maybeSmaller).if(compact).mhPx(compactFieldHeight - maybeSmaller).$
|
|
8859
8859
|
},
|
|
8860
8860
|
input: {
|
|
8861
|
-
...Css.w100.mw0.outline0.fg1.
|
|
8861
|
+
...Css.w100.mw0.outline0.fg1.bgTransparent.$,
|
|
8862
8862
|
// Not using Truss's inline `if` statement here because `addIn` properties do not respect the if statement.
|
|
8863
8863
|
...contrast && !inputStylePalette && Css.addIn("&::selection", Css.bgGray800.$).$,
|
|
8864
|
-
// Make the background transparent when highlighting the field on hover
|
|
8865
|
-
...borderOnHover && Css.bgTransparent.$,
|
|
8866
8864
|
// For "multiline" fields we add top and bottom padding of 7px for compact, or 11px for non-compact, to properly match the height of the single line fields
|
|
8867
8865
|
...multiline ? Css.br4.pyPx(compact ? 7 : textFieldBaseMultilineTopPadding).add("resize", "none").$ : Css.truncate.$
|
|
8868
8866
|
},
|
|
8869
8867
|
hover: Css.bgColor(hoverBgColor).if(contrast).bcGray600.$,
|
|
8870
|
-
focus: Css.bcBlue700.if(contrast).bcBlue500.if(borderOnHover).
|
|
8868
|
+
focus: Css.bcBlue700.bgColor(hoverBgColor).if(contrast).bcBlue500.if(borderOnHover).bcBlue500.$,
|
|
8871
8869
|
disabled: visuallyDisabled ? Css.cursorNotAllowed.gray600.bgColor(disabledBgColor).if(contrast).gray500.$ : Css.cursorNotAllowed.$,
|
|
8872
8870
|
error: Css.bcRed600.if(contrast).bcRed400.$
|
|
8873
8871
|
};
|
|
@@ -14605,7 +14603,7 @@ var variantStyles2 = {
|
|
|
14605
14603
|
|
|
14606
14604
|
// src/components/BeamContext.tsx
|
|
14607
14605
|
var import_react103 = require("react");
|
|
14608
|
-
var
|
|
14606
|
+
var import_react_aria45 = require("react-aria");
|
|
14609
14607
|
|
|
14610
14608
|
// src/components/Modal/Modal.tsx
|
|
14611
14609
|
var import_utils72 = require("@react-aria/utils");
|
|
@@ -16525,7 +16523,6 @@ function isSelectionButtonMenuProps(props) {
|
|
|
16525
16523
|
|
|
16526
16524
|
// src/components/Filters/FilterDropdownMenu.tsx
|
|
16527
16525
|
var import_react97 = require("react");
|
|
16528
|
-
var import_react_aria45 = require("react-aria");
|
|
16529
16526
|
|
|
16530
16527
|
// src/components/CountBadge.tsx
|
|
16531
16528
|
var import_jsx_runtime127 = require("@emotion/react/jsx-runtime");
|
|
@@ -16580,7 +16577,6 @@ var DateFilter = class extends BaseFilter {
|
|
|
16580
16577
|
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
16581
16578
|
SelectField,
|
|
16582
16579
|
{
|
|
16583
|
-
compact: true,
|
|
16584
16580
|
sizeToContent: true,
|
|
16585
16581
|
options: [
|
|
16586
16582
|
// Always show the 'Any' option
|
|
@@ -16603,7 +16599,6 @@ var DateFilter = class extends BaseFilter {
|
|
|
16603
16599
|
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
16604
16600
|
DateField,
|
|
16605
16601
|
{
|
|
16606
|
-
compact: true,
|
|
16607
16602
|
labelStyle: "inline",
|
|
16608
16603
|
value: value?.value ? new Date(value.value) : /* @__PURE__ */ new Date(),
|
|
16609
16604
|
label: "Date",
|
|
@@ -16630,7 +16625,6 @@ var DateRangeFilter = class extends BaseFilter {
|
|
|
16630
16625
|
/* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
|
|
16631
16626
|
DateRangeField,
|
|
16632
16627
|
{
|
|
16633
|
-
compact: true,
|
|
16634
16628
|
labelStyle: "inline",
|
|
16635
16629
|
isRangeFilterField: true,
|
|
16636
16630
|
placeholder: placeholderText,
|
|
@@ -16684,7 +16678,6 @@ var MultiFilter = class extends BaseFilter {
|
|
|
16684
16678
|
MultiSelectField,
|
|
16685
16679
|
{
|
|
16686
16680
|
...props,
|
|
16687
|
-
compact: !vertical,
|
|
16688
16681
|
label: this.label,
|
|
16689
16682
|
values: value || [],
|
|
16690
16683
|
labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
|
|
@@ -16749,7 +16742,6 @@ var NumberRangeFilter = class extends BaseFilter {
|
|
|
16749
16742
|
/* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
|
|
16750
16743
|
NumberField,
|
|
16751
16744
|
{
|
|
16752
|
-
compact: true,
|
|
16753
16745
|
sizeToContent: !inModal,
|
|
16754
16746
|
labelStyle: "inline",
|
|
16755
16747
|
clearable: true,
|
|
@@ -16767,7 +16759,6 @@ var NumberRangeFilter = class extends BaseFilter {
|
|
|
16767
16759
|
/* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
|
|
16768
16760
|
NumberField,
|
|
16769
16761
|
{
|
|
16770
|
-
compact: true,
|
|
16771
16762
|
sizeToContent: !inModal,
|
|
16772
16763
|
labelStyle: "inline",
|
|
16773
16764
|
clearable: true,
|
|
@@ -16812,7 +16803,6 @@ var SingleFilter = class extends BaseFilter {
|
|
|
16812
16803
|
options,
|
|
16813
16804
|
getOptionValue: (o) => o === allOption ? void 0 : getOptionValue(o),
|
|
16814
16805
|
getOptionLabel: (o) => o === allOption ? nothingSelectedText ?? "All" : getOptionLabel(o),
|
|
16815
|
-
compact: !vertical,
|
|
16816
16806
|
value,
|
|
16817
16807
|
label: this.label,
|
|
16818
16808
|
labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
|
|
@@ -16839,7 +16829,6 @@ var TreeFilter = class extends BaseFilter {
|
|
|
16839
16829
|
...props,
|
|
16840
16830
|
label: this.label,
|
|
16841
16831
|
values: value,
|
|
16842
|
-
compact: !vertical,
|
|
16843
16832
|
labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
|
|
16844
16833
|
sizeToContent: !inModal && !vertical,
|
|
16845
16834
|
onSelect: (options) => {
|
|
@@ -16865,7 +16854,6 @@ var BooleanFilter = class extends BaseFilter {
|
|
|
16865
16854
|
SelectField,
|
|
16866
16855
|
{
|
|
16867
16856
|
...props,
|
|
16868
|
-
compact: !vertical,
|
|
16869
16857
|
label: this.label,
|
|
16870
16858
|
value: String(value),
|
|
16871
16859
|
labelStyle: inModal ? "hidden" : !inModal && !vertical ? "inline" : "above",
|
|
@@ -17015,7 +17003,6 @@ function Filters(props) {
|
|
|
17015
17003
|
SelectField,
|
|
17016
17004
|
{
|
|
17017
17005
|
label: "Group by",
|
|
17018
|
-
compact: !vertical,
|
|
17019
17006
|
labelStyle: !vertical ? "inline" : "above",
|
|
17020
17007
|
sizeToContent: !vertical,
|
|
17021
17008
|
options: groupBy.options,
|
|
@@ -17039,6 +17026,7 @@ function Filters(props) {
|
|
|
17039
17026
|
Button,
|
|
17040
17027
|
{
|
|
17041
17028
|
label: "More Filters",
|
|
17029
|
+
size: "md",
|
|
17042
17030
|
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(CountBadge, { count: numModalFilters, hideIfZero: true }),
|
|
17043
17031
|
variant: "secondary",
|
|
17044
17032
|
onClick: () => openModal({
|
|
@@ -17048,7 +17036,7 @@ function Filters(props) {
|
|
|
17048
17036
|
...testId.moreFiltersBtn
|
|
17049
17037
|
}
|
|
17050
17038
|
),
|
|
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 }) })
|
|
17039
|
+
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 }) })
|
|
17052
17040
|
]
|
|
17053
17041
|
}
|
|
17054
17042
|
);
|
|
@@ -17102,20 +17090,6 @@ function FilterDropdownMenu(props) {
|
|
|
17102
17090
|
const { filter, onChange, filterDefs, groupBy } = props;
|
|
17103
17091
|
const testId = useTestIds(props, filterTestIdPrefix);
|
|
17104
17092
|
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
|
-
);
|
|
17119
17093
|
const activeFilterCount = (0, import_react97.useMemo)(() => getActiveFilterCount(filter), [filter]);
|
|
17120
17094
|
const filterImpls = (0, import_react97.useMemo)(() => buildFilterImpls(filterDefs), [filterDefs]);
|
|
17121
17095
|
const renderFilters = () => {
|
|
@@ -17125,7 +17099,7 @@ function FilterDropdownMenu(props) {
|
|
|
17125
17099
|
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));
|
|
17126
17100
|
};
|
|
17127
17101
|
return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_jsx_runtime140.Fragment, { children: [
|
|
17128
|
-
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
17102
|
+
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
17129
17103
|
Button,
|
|
17130
17104
|
{
|
|
17131
17105
|
label: "Filter",
|
|
@@ -17139,13 +17113,12 @@ function FilterDropdownMenu(props) {
|
|
|
17139
17113
|
onClick: () => setIsOpen(!isOpen),
|
|
17140
17114
|
...testId.button
|
|
17141
17115
|
}
|
|
17142
|
-
)
|
|
17143
|
-
isOpen && /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", {
|
|
17116
|
+
),
|
|
17117
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", { css: Css.df.aic.fww.gap1.w100.$, children: [
|
|
17144
17118
|
groupBy && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
17145
17119
|
SelectField,
|
|
17146
17120
|
{
|
|
17147
17121
|
label: "Group by",
|
|
17148
|
-
compact: true,
|
|
17149
17122
|
labelStyle: "inline",
|
|
17150
17123
|
sizeToContent: true,
|
|
17151
17124
|
options: groupBy.options,
|
|
@@ -17156,7 +17129,7 @@ function FilterDropdownMenu(props) {
|
|
|
17156
17129
|
}
|
|
17157
17130
|
),
|
|
17158
17131
|
renderFilters(),
|
|
17159
|
-
activeFilterCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn })
|
|
17132
|
+
activeFilterCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: () => onChange({}), ...testId.clearBtn })
|
|
17160
17133
|
] }),
|
|
17161
17134
|
!isOpen && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
17162
17135
|
FilterChips,
|
|
@@ -17208,7 +17181,7 @@ function FilterChips({
|
|
|
17208
17181
|
if (chips.length === 0) return null;
|
|
17209
17182
|
return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)("div", { css: Css.df.gap1.fww.aic.order(1).$, children: [
|
|
17210
17183
|
chips,
|
|
17211
|
-
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", variant: "tertiary", onClick: onClear, ...testId.clearBtn })
|
|
17184
|
+
/* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Button, { label: "Clear", size: "md", variant: "tertiary", onClick: onClear, ...testId.clearBtn })
|
|
17212
17185
|
] });
|
|
17213
17186
|
}
|
|
17214
17187
|
function buildFilterImpls(filterDefs) {
|
|
@@ -17759,7 +17732,7 @@ function BeamProvider({ children, ...presentationProps }) {
|
|
|
17759
17732
|
};
|
|
17760
17733
|
}, [modalBodyDiv, modalFooterDiv, modalHeaderDiv, sdHeaderDiv]);
|
|
17761
17734
|
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: [
|
|
17762
|
-
/* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
|
|
17735
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(import_react_aria45.OverlayProvider, { children: [
|
|
17763
17736
|
children,
|
|
17764
17737
|
modalRef.current && /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(Modal, { ...modalRef.current })
|
|
17765
17738
|
] }),
|
|
@@ -17785,14 +17758,14 @@ function useBeamContext() {
|
|
|
17785
17758
|
|
|
17786
17759
|
// src/components/ButtonDatePicker.tsx
|
|
17787
17760
|
var import_react104 = require("react");
|
|
17788
|
-
var
|
|
17761
|
+
var import_react_aria46 = require("react-aria");
|
|
17789
17762
|
var import_react_stately18 = require("react-stately");
|
|
17790
17763
|
var import_jsx_runtime151 = require("@emotion/react/jsx-runtime");
|
|
17791
17764
|
function ButtonDatePicker(props) {
|
|
17792
17765
|
const { defaultOpen, disabled, trigger, onSelect, ...datePickerProps } = props;
|
|
17793
17766
|
const state = (0, import_react_stately18.useMenuTriggerState)({ isOpen: defaultOpen });
|
|
17794
17767
|
const buttonRef = (0, import_react104.useRef)(null);
|
|
17795
|
-
const { menuTriggerProps, menuProps } = (0,
|
|
17768
|
+
const { menuTriggerProps, menuProps } = (0, import_react_aria46.useMenuTrigger)({ isDisabled: !!disabled }, state, buttonRef);
|
|
17796
17769
|
const tid = useTestIds(
|
|
17797
17770
|
props,
|
|
17798
17771
|
isTextButton(trigger) ? defaultTestId(labelOr(trigger, "buttonDatePicker")) : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name
|
|
@@ -17812,7 +17785,7 @@ function ButtonDatePicker(props) {
|
|
|
17812
17785
|
|
|
17813
17786
|
// src/components/ButtonGroup.tsx
|
|
17814
17787
|
var import_react105 = require("react");
|
|
17815
|
-
var
|
|
17788
|
+
var import_react_aria47 = require("react-aria");
|
|
17816
17789
|
var import_jsx_runtime152 = (
|
|
17817
17790
|
// Disable the button if the ButtonGroup is disabled or if the current button is disabled.
|
|
17818
17791
|
require("@emotion/react/jsx-runtime")
|
|
@@ -17829,9 +17802,9 @@ function GroupButton(props) {
|
|
|
17829
17802
|
const { icon, iconInc, iconColor, text, active, onClick: onPress, disabled, size, tooltip, ...otherProps } = props;
|
|
17830
17803
|
const ariaProps = { onPress, isDisabled: !!disabled, ...otherProps };
|
|
17831
17804
|
const ref = (0, import_react105.useRef)(null);
|
|
17832
|
-
const { buttonProps, isPressed } = (0,
|
|
17833
|
-
const { isFocusVisible, focusProps } = (0,
|
|
17834
|
-
const { hoverProps, isHovered } = (0,
|
|
17805
|
+
const { buttonProps, isPressed } = (0, import_react_aria47.useButton)(ariaProps, ref);
|
|
17806
|
+
const { isFocusVisible, focusProps } = (0, import_react_aria47.useFocusRing)();
|
|
17807
|
+
const { hoverProps, isHovered } = (0, import_react_aria47.useHover)(ariaProps);
|
|
17835
17808
|
const tid = useTestIds(props);
|
|
17836
17809
|
return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)("span", { css: getButtonStyles2(), children: maybeTooltip({
|
|
17837
17810
|
title: resolveTooltip(disabled, tooltip),
|
|
@@ -17888,7 +17861,7 @@ var iconStyles2 = {
|
|
|
17888
17861
|
|
|
17889
17862
|
// src/components/Card.tsx
|
|
17890
17863
|
var import_react107 = require("react");
|
|
17891
|
-
var
|
|
17864
|
+
var import_react_aria48 = require("react-aria");
|
|
17892
17865
|
|
|
17893
17866
|
// src/components/Tag.tsx
|
|
17894
17867
|
var import_utils116 = require("@react-aria/utils");
|
|
@@ -17947,7 +17920,7 @@ function Card(props) {
|
|
|
17947
17920
|
tag
|
|
17948
17921
|
} = props;
|
|
17949
17922
|
const tid = useTestIds(props, "card");
|
|
17950
|
-
const { hoverProps, isHovered } = (0,
|
|
17923
|
+
const { hoverProps, isHovered } = (0, import_react_aria48.useHover)({ isDisabled });
|
|
17951
17924
|
const isList = type === "list";
|
|
17952
17925
|
const imgHeight = isList ? 96 : bordered ? 224 : 256;
|
|
17953
17926
|
const styles = (0, import_react107.useMemo)(
|
|
@@ -18222,12 +18195,12 @@ var gridCloneKey = "dndgrid-clone";
|
|
|
18222
18195
|
var activeGridItemClass = "dndgrid-active";
|
|
18223
18196
|
|
|
18224
18197
|
// src/components/DnDGrid/DnDGridItemHandle.tsx
|
|
18225
|
-
var
|
|
18198
|
+
var import_react_aria49 = require("react-aria");
|
|
18226
18199
|
var import_jsx_runtime157 = require("@emotion/react/jsx-runtime");
|
|
18227
18200
|
function DnDGridItemHandle(props) {
|
|
18228
18201
|
const { dragHandleProps, icon = "move", compact = false, color } = props;
|
|
18229
|
-
const { focusProps, isFocusVisible } = (0,
|
|
18230
|
-
const { hoverProps, isHovered } = (0,
|
|
18202
|
+
const { focusProps, isFocusVisible } = (0, import_react_aria49.useFocusRing)();
|
|
18203
|
+
const { hoverProps, isHovered } = (0, import_react_aria49.useHover)({});
|
|
18231
18204
|
const tid = useTestIds(props, "dragHandle");
|
|
18232
18205
|
const iconButtonNormal2 = Css.hPx(28).wPx(28).br8.bw2.$;
|
|
18233
18206
|
const iconButtonCompact2 = Css.hPx(18).wPx(18).br4.bw1.$;
|
|
@@ -18239,7 +18212,7 @@ function DnDGridItemHandle(props) {
|
|
|
18239
18212
|
...Css.cursor("grab").bcTransparent.bss.bgTransparent.outline0.dif.aic.jcc.transition.if(isFocusVisible).bcBlue700.$,
|
|
18240
18213
|
...isHovered && Css.bgGray200.$
|
|
18241
18214
|
},
|
|
18242
|
-
...(0,
|
|
18215
|
+
...(0, import_react_aria49.mergeProps)(dragHandleProps, focusProps, hoverProps),
|
|
18243
18216
|
...tid,
|
|
18244
18217
|
children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(Icon, { icon, inc: compact ? 2 : void 0, color })
|
|
18245
18218
|
}
|
|
@@ -18553,7 +18526,7 @@ var snackbarId = 1;
|
|
|
18553
18526
|
|
|
18554
18527
|
// src/components/Stepper.tsx
|
|
18555
18528
|
var import_react116 = require("react");
|
|
18556
|
-
var
|
|
18529
|
+
var import_react_aria50 = require("react-aria");
|
|
18557
18530
|
var import_jsx_runtime163 = require("@emotion/react/jsx-runtime");
|
|
18558
18531
|
function Stepper(props) {
|
|
18559
18532
|
const { steps, currentStep, onChange } = props;
|
|
@@ -18597,9 +18570,9 @@ function StepButton(props) {
|
|
|
18597
18570
|
const { label, disabled, state, isCurrent, onClick } = props;
|
|
18598
18571
|
const ariaProps = { onPress: onClick, isDisabled: disabled };
|
|
18599
18572
|
const ref = (0, import_react116.useRef)(null);
|
|
18600
|
-
const { buttonProps, isPressed } = (0,
|
|
18601
|
-
const { isFocusVisible, focusProps } = (0,
|
|
18602
|
-
const { hoverProps, isHovered } = (0,
|
|
18573
|
+
const { buttonProps, isPressed } = (0, import_react_aria50.useButton)(ariaProps, ref);
|
|
18574
|
+
const { isFocusVisible, focusProps } = (0, import_react_aria50.useFocusRing)();
|
|
18575
|
+
const { hoverProps, isHovered } = (0, import_react_aria50.useHover)(ariaProps);
|
|
18603
18576
|
const focusRingStyles2 = state === "error" ? Css.bshDanger.$ : Css.bshFocus.$;
|
|
18604
18577
|
const tid = useTestIds(props, "stepButton");
|
|
18605
18578
|
return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(
|
|
@@ -18886,7 +18859,7 @@ var SuperDrawerContent = ({ children, actions }) => {
|
|
|
18886
18859
|
// src/components/Tabs.tsx
|
|
18887
18860
|
var import_change_case7 = require("change-case");
|
|
18888
18861
|
var import_react118 = require("react");
|
|
18889
|
-
var
|
|
18862
|
+
var import_react_aria51 = require("react-aria");
|
|
18890
18863
|
var import_react_router2 = require("react-router");
|
|
18891
18864
|
var import_react_router_dom5 = require("react-router-dom");
|
|
18892
18865
|
var import_jsx_runtime168 = require("@emotion/react/jsx-runtime");
|
|
@@ -18929,7 +18902,7 @@ function Tabs(props) {
|
|
|
18929
18902
|
const selected = isRouteTabs(props) ? uniqueTabValue(
|
|
18930
18903
|
props.tabs.find((t) => !!(0, import_react_router2.matchPath)(location.pathname, { path: t.path, exact: true })) || props.tabs[0]
|
|
18931
18904
|
) : props.selected;
|
|
18932
|
-
const { isFocusVisible, focusProps } = (0,
|
|
18905
|
+
const { isFocusVisible, focusProps } = (0, import_react_aria51.useFocusRing)();
|
|
18933
18906
|
const tid = useTestIds(others, "tabs");
|
|
18934
18907
|
const [active, setActive] = (0, import_react118.useState)(selected);
|
|
18935
18908
|
const ref = (0, import_react118.useRef)(null);
|
|
@@ -18974,7 +18947,7 @@ function TabImpl(props) {
|
|
|
18974
18947
|
const { tab, onClick, active, onKeyUp, onBlur, focusProps, isFocusVisible = false, ...others } = props;
|
|
18975
18948
|
const { disabled = false, name: label, icon, endAdornment } = tab;
|
|
18976
18949
|
const isDisabled = !!disabled;
|
|
18977
|
-
const { hoverProps, isHovered } = (0,
|
|
18950
|
+
const { hoverProps, isHovered } = (0, import_react_aria51.useHover)({ isDisabled });
|
|
18978
18951
|
const { baseStyles: baseStyles5, activeStyles: activeStyles4, focusRingStyles: focusRingStyles2, hoverStyles: hoverStyles4, disabledStyles: disabledStyles4, activeHoverStyles } = (0, import_react118.useMemo)(
|
|
18979
18952
|
() => getTabStyles(),
|
|
18980
18953
|
[]
|
|
@@ -18997,7 +18970,7 @@ function TabImpl(props) {
|
|
|
18997
18970
|
...isFocusVisible && active && focusRingStyles2
|
|
18998
18971
|
}
|
|
18999
18972
|
};
|
|
19000
|
-
const interactiveProps = (0,
|
|
18973
|
+
const interactiveProps = (0, import_react_aria51.mergeProps)(focusProps, hoverProps, {
|
|
19001
18974
|
onKeyUp,
|
|
19002
18975
|
onBlur,
|
|
19003
18976
|
...isRouteTab(tab) ? {} : { onClick: () => onClick(tab.value) }
|