@laser-ui/components 0.0.1 → 0.0.4

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
4
 
5
+ ## [0.0.4](https://github.com/laser-ui/laser-ui/compare/v0.0.3...v0.0.4) (2023-09-11)
6
+
7
+ **Note:** Version bump only for package @laser-ui/components
8
+
9
+ ## [0.0.3](https://github.com/laser-ui/laser-ui/compare/v0.0.2...v0.0.3) (2023-09-11)
10
+
11
+ **Note:** Version bump only for package @laser-ui/components
12
+
13
+ ## [0.0.2](https://github.com/laser-ui/laser-ui/compare/v0.0.1...v0.0.2) (2023-09-11)
14
+
15
+ ### Bug Fixes
16
+
17
+ - fix module export ([d680186](https://github.com/laser-ui/laser-ui/commit/d68018638b7521cb266e778a59444424f83502a6))
18
+
5
19
  ## 0.0.1 (2023-09-07)
6
20
 
7
21
  **Note:** Version bump only for package @laser-ui/components
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import { useEventCallback } from '@laser-ui/hooks';
3
3
  import { checkNodeExist } from '@laser-ui/utils';
4
4
  import { isUndefined } from 'lodash';
5
- import { cloneElement, forwardRef, isValidElement, useImperativeHandle, useRef, useState } from 'react';
5
+ import { cloneElement, forwardRef, useImperativeHandle, useRef, useState } from 'react';
6
6
  import { useMaxIndex, useTranslation } from '../../hooks';
7
7
  import { Popup } from '../../internal/popup';
8
8
  import { Portal } from '../../internal/portal';
@@ -113,7 +113,7 @@ export const MenuSub = forwardRef((props, ref) => {
113
113
  leaved: { display: 'none' },
114
114
  }, children: (listRef, collapseStyle, state) => {
115
115
  if (mode !== 'vertical') {
116
- if (inNav && state !== 'leaved' && isValidElement(dataRef.current.nodeCache)) {
116
+ if (inNav && state !== 'leaved' && dataRef.current.nodeCache) {
117
117
  return cloneElement(dataRef.current.nodeCache, {
118
118
  style: Object.assign(Object.assign({}, dataRef.current.nodeCache.props.style), collapseStyle),
119
119
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laser-ui/components",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "description": "React components.",
5
5
  "keywords": [
6
6
  "ui",
@@ -21,11 +21,13 @@
21
21
  "license": "MIT",
22
22
  "author": "Xie Jay <xiejay97@gmail.com>",
23
23
  "sideEffects": false,
24
+ "type": "module",
24
25
  "main": "./index.js",
26
+ "module": "./index.js",
25
27
  "types": "./index.d.ts",
26
28
  "dependencies": {
27
- "@laser-ui/hooks": "0.0.1",
28
- "@laser-ui/utils": "0.0.1",
29
+ "@laser-ui/hooks": "0.0.4",
30
+ "@laser-ui/utils": "0.0.4",
29
31
  "@material-design-icons/svg": "^0.14.9",
30
32
  "lodash": "^4.17.21",
31
33
  "rcl-store": "^2.1.0",
@@ -41,7 +43,5 @@
41
43
  "access": "public",
42
44
  "directory": "../../dist/libs/components"
43
45
  },
44
- "gitHead": "d08f89d34ac56ff632db700f52c06931337c9ce8",
45
- "module": "./src/index.js",
46
- "type": "module"
46
+ "gitHead": "54a1e87b25b1e389aa2dcd19657b4c6a60bc06f2"
47
47
  }