@antscorp/antsomi-ui 1.3.5-beta.602 → 1.3.5-beta.604

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,4 +1,5 @@
1
1
  import React from 'react';
2
2
  import { InputDropdownProps } from './types';
3
+ import './style.scss';
3
4
  export { Dropdown } from 'antd';
4
5
  export declare const InputDropdown: (props: InputDropdownProps) => React.JSX.Element;
@@ -14,7 +14,7 @@ import { Space, Typography } from 'antd';
14
14
  import Icon from '@antscorp/icons';
15
15
  import { StyledInputDropdownRoot } from './styled';
16
16
  import clsx from 'clsx';
17
- // import './style.scss';
17
+ import './style.scss';
18
18
  export { Dropdown } from 'antd';
19
19
  const DefaultExpandIcon = React.createElement(Icon, { type: "icon-ants-expand-more" });
20
20
  export const InputDropdown = (props) => {
@@ -1,5 +1,5 @@
1
1
  // Libraries
2
- import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
2
+ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
3
  import { isArray, isBoolean, isNil } from 'lodash';
4
4
  import { Cookies as ReactCookies } from 'react-cookie';
5
5
  // Utils
@@ -53,7 +53,7 @@ export const useLeftMenu = (props) => {
53
53
  isExpandMenu: false,
54
54
  });
55
55
  const { mappingChildrenMenu, flattenMenuPermission, menuListPermission, permissionMenu, activeItemPath, } = usePermission();
56
- useLayoutEffect(() => {
56
+ useDeepCompareEffect(() => {
57
57
  if (isBoolean(defaultExpandMenu)) {
58
58
  setState(prev => (Object.assign(Object.assign({}, prev), { isExpandMenu: defaultExpandMenu })));
59
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.602",
3
+ "version": "1.3.5-beta.604",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",