@arcblock/ux 2.10.40 → 2.10.41
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/Center/index.d.ts +7 -3
- package/lib/Center/index.js +3 -2
- package/package.json +5 -5
- package/src/Center/index.js +3 -2
package/lib/Center/index.d.ts
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
*
|
3
|
-
* @param {
|
2
|
+
* @param {Object} props 属性
|
3
|
+
* @param {*} props.children 子元素
|
4
|
+
* @param {'screen'|'parent'} [props.relative='screen'] 容器相对尺寸,默认相对屏幕(screen),可设置为父容器(parent)
|
4
5
|
* @returns react component element
|
5
6
|
*/
|
6
|
-
declare function Center({ children, relative }:
|
7
|
+
declare function Center({ children, relative }: {
|
8
|
+
children: any;
|
9
|
+
relative?: "screen" | "parent" | undefined;
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
7
11
|
declare namespace Center {
|
8
12
|
namespace propTypes {
|
9
13
|
let children: PropTypes.Validator<any>;
|
package/lib/Center/index.js
CHANGED
@@ -3,8 +3,9 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import { styled } from '../Theme';
|
4
4
|
|
5
5
|
/**
|
6
|
-
*
|
7
|
-
* @param {
|
6
|
+
* @param {Object} props 属性
|
7
|
+
* @param {*} props.children 子元素
|
8
|
+
* @param {'screen'|'parent'} [props.relative='screen'] 容器相对尺寸,默认相对屏幕(screen),可设置为父容器(parent)
|
8
9
|
* @returns react component element
|
9
10
|
*/
|
10
11
|
export default function Center({
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.10.
|
3
|
+
"version": "2.10.41",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -64,12 +64,12 @@
|
|
64
64
|
"react": ">=18.2.0",
|
65
65
|
"react-router-dom": ">=6.22.3"
|
66
66
|
},
|
67
|
-
"gitHead": "
|
67
|
+
"gitHead": "d24cb6aab78d9ad2c0e6f4018da00aa3c8cb18fb",
|
68
68
|
"dependencies": {
|
69
69
|
"@arcblock/did-motif": "^1.1.13",
|
70
|
-
"@arcblock/icons": "^2.10.
|
71
|
-
"@arcblock/nft-display": "^2.10.
|
72
|
-
"@arcblock/react-hooks": "^2.10.
|
70
|
+
"@arcblock/icons": "^2.10.41",
|
71
|
+
"@arcblock/nft-display": "^2.10.41",
|
72
|
+
"@arcblock/react-hooks": "^2.10.41",
|
73
73
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
74
74
|
"@fontsource/inter": "^5.0.16",
|
75
75
|
"@fontsource/ubuntu-mono": "^5.0.18",
|
package/src/Center/index.js
CHANGED
@@ -3,8 +3,9 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import { styled } from '../Theme';
|
4
4
|
|
5
5
|
/**
|
6
|
-
*
|
7
|
-
* @param {
|
6
|
+
* @param {Object} props 属性
|
7
|
+
* @param {*} props.children 子元素
|
8
|
+
* @param {'screen'|'parent'} [props.relative='screen'] 容器相对尺寸,默认相对屏幕(screen),可设置为父容器(parent)
|
8
9
|
* @returns react component element
|
9
10
|
*/
|
10
11
|
export default function Center({ children, relative }) {
|