@sproutsocial/seeds-react-menu 1.6.16 → 1.7.0
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 +23 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
- package/src/MenuToggleButton/MenuToggleButton.tsx +15 -0
- package/src/MenuToggleButton/__tests__/MenuToggleButton.test.tsx +495 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,14 +8,14 @@ $ tsup --dts
|
|
|
8
8
|
[34mCLI[39m Cleaning output folder
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m144.65 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m372.90 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 377ms
|
|
14
|
+
[32mESM[39m [1mdist/esm/index.js [22m[32m134.70 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/esm/index.js.map [22m[32m371.61 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 380ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 8798ms
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m39.03 KB[39m
|
|
20
20
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m39.03 KB[39m
|
|
21
|
-
Done in 10.
|
|
21
|
+
Done in 10.21s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-menu
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4a8dc04: Correct aria-attributes that are provided by downshift
|
|
8
|
+
|
|
9
|
+
## 1.6.17
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [fa7579a]
|
|
14
|
+
- @sproutsocial/seeds-react-theme@3.2.1
|
|
15
|
+
- @sproutsocial/seeds-react-box@1.1.7
|
|
16
|
+
- @sproutsocial/seeds-react-icon@2.0.1
|
|
17
|
+
- @sproutsocial/seeds-react-label@1.0.6
|
|
18
|
+
- @sproutsocial/seeds-react-token-input@1.4.12
|
|
19
|
+
- @sproutsocial/seeds-react-popout@2.4.12
|
|
20
|
+
- @sproutsocial/seeds-react-checkbox@1.3.9
|
|
21
|
+
- @sproutsocial/seeds-react-input@1.4.12
|
|
22
|
+
- @sproutsocial/seeds-react-button@1.3.6
|
|
23
|
+
- @sproutsocial/seeds-react-switch@1.2.9
|
|
24
|
+
- @sproutsocial/seeds-react-radio@1.3.5
|
|
25
|
+
|
|
3
26
|
## 1.6.16
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/esm/index.js
CHANGED
|
@@ -2796,6 +2796,15 @@ var MenuToggleButton = (props) => {
|
|
|
2796
2796
|
...ariaProps,
|
|
2797
2797
|
...isListbox ? {} : { role: "button", "aria-haspopup": "menu" }
|
|
2798
2798
|
});
|
|
2799
|
+
if (toggleButtonProps && toggleButtonProps["aria-activedescendant"] === "") {
|
|
2800
|
+
toggleButtonProps["aria-activedescendant"] = void 0;
|
|
2801
|
+
}
|
|
2802
|
+
if (toggleButtonProps && toggleButtonProps["aria-expanded"] === false) {
|
|
2803
|
+
toggleButtonProps["aria-controls"] = void 0;
|
|
2804
|
+
}
|
|
2805
|
+
if (toggleButtonProps) {
|
|
2806
|
+
toggleButtonProps["aria-labelledby"] = void 0;
|
|
2807
|
+
}
|
|
2799
2808
|
return /* @__PURE__ */ jsx13(Button, { appearance: "secondary", ...toggleButtonProps, ...restProps });
|
|
2800
2809
|
};
|
|
2801
2810
|
|