@eleventheye/asui 2.5.1 → 2.5.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.
@@ -1 +1 @@
1
- {"version":3,"file":"ASNavBar.d.ts","sourceRoot":"","sources":["../../src/asnavbar/ASNavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAGvE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAO3D,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6FrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"ASNavBar.d.ts","sourceRoot":"","sources":["../../src/asnavbar/ASNavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAGvE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAO3D,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsFrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -14,18 +14,6 @@ const ASNavBar = ({ className = '', navItems = [], selectedItem = '', onItemSele
14
14
  const navBarRef = (0, react_1.useRef)(null);
15
15
  const navBarHighlightBoxRef = (0, react_1.useRef)(null);
16
16
  const [selected, setSelected] = (0, react_1.useState)(selectedItem);
17
- (0, react_1.useEffect)(() => {
18
- if (navBarHighlightBoxRef.current) {
19
- const selectedBox = navBarHighlightBoxRef.current;
20
- selectedBox.style.width = '0';
21
- }
22
- }, []);
23
- (0, react_1.useEffect)(() => {
24
- if (selectedItemIdRef.current === INIT_VALUE && navItems && navItems.length > 0 && !selectedItem) {
25
- selectedItemIdRef.current = navItems[0].itemId;
26
- setSelected(selectedItemIdRef.current);
27
- }
28
- }, [selectedItem, navItems]);
29
17
  const slideHighlightToSelectedItem = (selectedItemEl, itemId) => {
30
18
  if (!navBarHighlightBoxRef.current || !navBarRef.current)
31
19
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleventheye/asui",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "private": false,
5
5
  "description": "AS UI React Library by eleventheye (another one!)",
6
6
  "keywords": [