@nutui/nutui-react 2.0.13 → 2.0.15-beta.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/dist/style.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.0.13 Wed Aug 16 2023 13:42:47 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.0.15 Wed Aug 30 2023 14:05:09 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -3,8 +3,20 @@ import { BasicComponent } from '../../utils/typings';
3
3
  export type LoadingType = 'spinner' | 'circular';
4
4
  export type DirectionType = 'horizontal' | 'vertical';
5
5
  export interface LoadingProps extends BasicComponent {
6
- type: LoadingType;
7
- direction: DirectionType;
8
- icon?: ReactNode;
6
+ /**
7
+ * loading图标的样式
8
+ * @default circular
9
+ */
10
+ type: LoadingType
11
+ /**
12
+ * loading图标和文字的排列方式
13
+ * @default horizontal
14
+ */
15
+ direction: DirectionType
16
+ /**
17
+ * 自定义loading的图标
18
+ * @default -
19
+ */
20
+ icon?: ReactNode
9
21
  }
10
22
  export declare const Loading: FunctionComponent<Partial<LoadingProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -15,21 +15,21 @@ export interface SideNavBarProps extends Omit<React.HTMLAttributes<HTMLDivElemen
15
15
  * 遮罩宽度百分比
16
16
  * @default 80%
17
17
  */
18
- width?: string
18
+ width: string
19
19
  /**
20
20
  * 缩进宽度
21
21
  * @default 20
22
22
  */
23
- indent?: number
23
+ indent: number
24
24
  /**
25
25
  * 弹出位置
26
26
  * @default left
27
27
  */
28
- position?: 'left' | 'right'
28
+ position: 'left' | 'right'
29
29
  /**
30
30
  * 关闭遮罩时触发
31
31
  * @default -
32
32
  */
33
33
  onClose: () => void
34
34
  }
35
- export declare const SideNavBar: FunctionComponent<SideNavBarProps>;
35
+ export declare const SideNavBar: FunctionComponent<Partial<SideNavBarProps>>;
@@ -1,9 +1,25 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import { BasicComponent } from '../../utils/typings';
3
3
  export interface SpaceProps extends BasicComponent {
4
- direction: 'horizontal' | 'vertical';
5
- align: 'start' | 'end' | 'center' | 'baseline';
6
- justify: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';
7
- wrap: boolean;
4
+ /**
5
+ * 间距方向
6
+ * @default horizontal
7
+ */
8
+ direction: 'horizontal' | 'vertical'
9
+ /**
10
+ * 交叉轴对齐方式
11
+ * @default -
12
+ */
13
+ align: 'start' | 'end' | 'center' | 'baseline'
14
+ /**
15
+ * 主轴对齐方式
16
+ * @default -
17
+ */
18
+ justify: 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch'
19
+ /**
20
+ * 是否自动换行,仅在 horizontal 时有效
21
+ * @default -
22
+ */
23
+ wrap: boolean
8
24
  }
9
25
  export declare const Space: FunctionComponent<Partial<SpaceProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { useEffect } from 'react';
2
+ export declare const useIsomorphicLayoutEffect: typeof useEffect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "2.0.13",
3
+ "version": "2.0.15-beta.0",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",