@deque/cauldron-react 6.20.2-canary.add098fe → 6.20.2-canary.c318fe17
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/lib/index.js +9 -7
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1785,11 +1785,10 @@ var AnchoredOverlay = React.forwardRef(function (_a, refProp) {
|
|
|
1785
1785
|
reactDom$1.shift({ crossAxis: false })
|
|
1786
1786
|
].filter(Boolean),
|
|
1787
1787
|
elements: {
|
|
1788
|
-
reference: resolveElement(target)
|
|
1789
|
-
floating: ref.current
|
|
1788
|
+
reference: resolveElement(target)
|
|
1790
1789
|
},
|
|
1791
1790
|
whileElementsMounted: dom.autoUpdate
|
|
1792
|
-
}), floatingStyles = _f.floatingStyles, placement = _f.placement, middlewareData = _f.middlewareData;
|
|
1791
|
+
}), refs = _f.refs, floatingStyles = _f.floatingStyles, placement = _f.placement, middlewareData = _f.middlewareData;
|
|
1793
1792
|
useEscapeKey({
|
|
1794
1793
|
active: open,
|
|
1795
1794
|
capture: true,
|
|
@@ -1819,7 +1818,10 @@ var AnchoredOverlay = React.forwardRef(function (_a, refProp) {
|
|
|
1819
1818
|
});
|
|
1820
1819
|
}
|
|
1821
1820
|
}, [onShiftChange, (_b = middlewareData.shift) === null || _b === void 0 ? void 0 : _b.x, (_c = middlewareData.shift) === null || _c === void 0 ? void 0 : _c.y]);
|
|
1822
|
-
var AnchoredOverlayComponent = (React__default["default"].createElement(Component, tslib.__assign({ ref:
|
|
1821
|
+
var AnchoredOverlayComponent = (React__default["default"].createElement(Component, tslib.__assign({ ref: function (element) {
|
|
1822
|
+
refs.setFloating(element);
|
|
1823
|
+
ref.current = element;
|
|
1824
|
+
} }, props, { style: tslib.__assign(tslib.__assign({}, floatingStyles), style) }), children));
|
|
1823
1825
|
if (portal && !isBrowser()) {
|
|
1824
1826
|
return null;
|
|
1825
1827
|
}
|
|
@@ -5054,10 +5056,10 @@ var ActionListSeparator = React.forwardRef(function (_a, ref) {
|
|
|
5054
5056
|
ActionListSeparator.displayName = 'ActionListSeparator';
|
|
5055
5057
|
|
|
5056
5058
|
var ActionListLinkItem = React.forwardRef(function (_a, ref) {
|
|
5057
|
-
var
|
|
5059
|
+
var className = _a.className;
|
|
5058
5060
|
// ActionListLinkItem should not be able to be "selected"
|
|
5059
5061
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5060
|
-
_a.selected; var props = tslib.__rest(_a, ["
|
|
5062
|
+
_a.selected; var props = tslib.__rest(_a, ["className", "selected"]);
|
|
5061
5063
|
var contextRole = useActionListContext().role;
|
|
5062
5064
|
var listItemRole = React.useMemo(function () {
|
|
5063
5065
|
if (contextRole === 'menu') {
|
|
@@ -5069,7 +5071,7 @@ var ActionListLinkItem = React.forwardRef(function (_a, ref) {
|
|
|
5069
5071
|
}
|
|
5070
5072
|
return undefined;
|
|
5071
5073
|
}, [contextRole]);
|
|
5072
|
-
return (React__default["default"].createElement(ActionListItem, tslib.__assign({
|
|
5074
|
+
return (React__default["default"].createElement(ActionListItem, tslib.__assign({ ref: ref, className: classNames__default["default"]('Link ActionListLinkItem', className), as: "a", role: listItemRole, tabIndex: listItemRole === 'menuitem' ? -1 : undefined }, props)));
|
|
5073
5075
|
});
|
|
5074
5076
|
ActionListLinkItem.displayName = 'ActionListLinkItem';
|
|
5075
5077
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "6.20.2-canary.
|
|
3
|
+
"version": "6.20.2-canary.c318fe17",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
6
6
|
"homepage": "https://cauldron.dequelabs.com/",
|