@sproutsocial/seeds-react-menu 1.6.6 → 1.6.8
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 +12 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +15 -13
- package/src/NestedMenu/NestedMenu.tsx +12 -1
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.31 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m372.00 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 660ms
|
|
14
|
+
[32mESM[39m [1mdist/esm/index.js [22m[32m134.35 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/esm/index.js.map [22m[32m370.71 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 660ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 17062ms
|
|
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
|
|
21
|
+
Done in 20.53s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-menu
|
|
2
2
|
|
|
3
|
+
## 1.6.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [47580c4]
|
|
8
|
+
- @sproutsocial/seeds-react-theme@3.1.0
|
|
9
|
+
- @sproutsocial/seeds-react-box@1.1.4
|
|
10
|
+
- @sproutsocial/seeds-react-icon@1.1.4
|
|
11
|
+
- @sproutsocial/seeds-react-label@1.0.3
|
|
12
|
+
- @sproutsocial/seeds-react-token-input@1.4.4
|
|
13
|
+
- @sproutsocial/seeds-react-checkbox@1.3.3
|
|
14
|
+
- @sproutsocial/seeds-react-input@1.4.5
|
|
15
|
+
- @sproutsocial/seeds-react-popout@2.4.4
|
|
16
|
+
- @sproutsocial/seeds-react-button@1.2.3
|
|
17
|
+
- @sproutsocial/seeds-react-switch@1.2.3
|
|
18
|
+
- @sproutsocial/seeds-react-radio@1.3.2
|
|
19
|
+
|
|
20
|
+
## 1.6.7
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 8011a74: Remove useId to correct react 16/17 support
|
|
25
|
+
|
|
3
26
|
## 1.6.6
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/esm/index.js
CHANGED
|
@@ -4000,9 +4000,10 @@ var AutocompleteSelect = (props) => {
|
|
|
4000
4000
|
};
|
|
4001
4001
|
|
|
4002
4002
|
// src/NestedMenu/NestedMenu.tsx
|
|
4003
|
-
import {
|
|
4003
|
+
import { useEffect as useEffect4, useState, useRef as useRef2 } from "react";
|
|
4004
4004
|
import { AnimatePresence as AnimatePresence2, motion as motion3 } from "motion/react";
|
|
4005
4005
|
import { useSelect as useSelect6 } from "downshift";
|
|
4006
|
+
import uniqueId from "lodash.uniqueid";
|
|
4006
4007
|
|
|
4007
4008
|
// src/reducers/nestedMenuStateReducer.tsx
|
|
4008
4009
|
import { useCombobox as useCombobox4, useSelect as useSelect5 } from "downshift";
|
|
@@ -4244,6 +4245,14 @@ var NestedMenuPopout = ({
|
|
|
4244
4245
|
|
|
4245
4246
|
// src/NestedMenu/NestedMenu.tsx
|
|
4246
4247
|
import { jsx as jsx34, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
4248
|
+
var useId = () => {
|
|
4249
|
+
const [id, setId] = useState();
|
|
4250
|
+
useEffect4(() => {
|
|
4251
|
+
const uId = uniqueId();
|
|
4252
|
+
setId(uId);
|
|
4253
|
+
}, []);
|
|
4254
|
+
return id;
|
|
4255
|
+
};
|
|
4247
4256
|
var NestedMenu = ({
|
|
4248
4257
|
initialMenuId,
|
|
4249
4258
|
menus,
|
|
@@ -4262,8 +4271,8 @@ var NestedMenu = ({
|
|
|
4262
4271
|
const { defaultDownshiftProps, ...restDefaults } = useDownshiftDefaults({
|
|
4263
4272
|
isCombobox: false
|
|
4264
4273
|
});
|
|
4265
|
-
const
|
|
4266
|
-
const nestedMenuId = externalNestedMenuId ?? `nested-menu-${
|
|
4274
|
+
const uniqueId2 = useId();
|
|
4275
|
+
const nestedMenuId = externalNestedMenuId ?? `nested-menu-${uniqueId2}`;
|
|
4267
4276
|
const [hasLoadedOnce, setHasLoadedOnce] = useState(false);
|
|
4268
4277
|
const useSelectReturnProps = useSelect6({
|
|
4269
4278
|
...defaultDownshiftProps.select,
|