@sproutsocial/seeds-react-menu 1.3.1 → 1.3.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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/esm/index.js +23 -14
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +23 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/MenuRoot/__tests__/MenuRoot.test.tsx +48 -1
- package/src/MenuToggleButton/MenuToggleButton.tsx +30 -11
- package/src/menuTestingUtils.tsx +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -84,14 +84,14 @@ ESM Build start
|
|
|
84
84
|
╵ [32m~~~~~~~~~[0m
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
CJS dist/index.js 142.
|
|
88
|
-
CJS dist/index.js.map 368.
|
|
89
|
-
CJS ⚡️ Build success in
|
|
90
|
-
ESM dist/esm/index.js
|
|
91
|
-
ESM dist/esm/index.js.map 367.
|
|
92
|
-
ESM ⚡️ Build success in
|
|
87
|
+
CJS dist/index.js 142.82 KB
|
|
88
|
+
CJS dist/index.js.map 368.80 KB
|
|
89
|
+
CJS ⚡️ Build success in 602ms
|
|
90
|
+
ESM dist/esm/index.js 133.17 KB
|
|
91
|
+
ESM dist/esm/index.js.map 367.52 KB
|
|
92
|
+
ESM ⚡️ Build success in 605ms
|
|
93
93
|
DTS Build start
|
|
94
|
-
DTS ⚡️ Build success in
|
|
94
|
+
DTS ⚡️ Build success in 12162ms
|
|
95
95
|
DTS dist/index.d.ts 37.08 KB
|
|
96
96
|
DTS dist/index.d.mts 37.08 KB
|
|
97
|
-
Done in
|
|
97
|
+
Done in 15.79s.
|
package/CHANGELOG.md
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -2758,20 +2758,29 @@ import { Button } from "@sproutsocial/seeds-react-button";
|
|
|
2758
2758
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
2759
2759
|
var MenuToggleButton = (props) => {
|
|
2760
2760
|
const { getToggleButtonProps, isListbox, getDropdownProps, ref, ariaProps } = useMenuToggleContext();
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2761
|
+
const {
|
|
2762
|
+
onClick: userOnClick,
|
|
2763
|
+
onKeyDown: userOnKeyDown,
|
|
2764
|
+
onBlur: userOnBlur,
|
|
2765
|
+
...restProps
|
|
2766
|
+
} = props;
|
|
2767
|
+
const defaultDropdownProps = {
|
|
2768
|
+
ref,
|
|
2769
|
+
onClick: userOnClick,
|
|
2770
|
+
onKeyDown: userOnKeyDown,
|
|
2771
|
+
onBlur: userOnBlur
|
|
2772
|
+
};
|
|
2773
|
+
const dropdownProps = getDropdownProps?.({
|
|
2774
|
+
...defaultDropdownProps,
|
|
2775
|
+
preventKeyAction: true
|
|
2776
|
+
}) ?? defaultDropdownProps;
|
|
2777
|
+
const toggleButtonProps = getToggleButtonProps?.({
|
|
2778
|
+
...dropdownProps,
|
|
2779
|
+
refKey: "innerRef",
|
|
2780
|
+
...ariaProps,
|
|
2781
|
+
...isListbox ? {} : { role: "button", "aria-haspopup": "menu" }
|
|
2782
|
+
});
|
|
2783
|
+
return /* @__PURE__ */ jsx13(Button, { appearance: "secondary", ...toggleButtonProps, ...restProps });
|
|
2775
2784
|
};
|
|
2776
2785
|
|
|
2777
2786
|
// src/MenuSearchInput/MenuSearchInput.tsx
|