@aloudata/aloudata-design 2.1.0 → 2.3.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/DataPreviewTable/index.js +1 -1
- package/dist/Dropdown/index.d.ts +1 -1
- package/dist/Dropdown/index.js +58 -18
- package/dist/Dropdown/style/index.less +12 -101
- package/dist/MemberPicker/components/MultipleOption.js +1 -0
- package/dist/Menu/index.d.ts +36 -20
- package/dist/Menu/index.js +110 -49
- package/dist/Menu/style/index.less +116 -73
- package/dist/Select/index.js +0 -3
- package/dist/Switch/index.js +6 -1
- package/dist/Switch/style/index.less +1 -0
- package/dist/Switch/style/status.less +12 -0
- package/dist/Table/components/Cell.d.ts +1 -1
- package/dist/Table/components/Cell.js +24 -2
- package/dist/Table/components/ErrorBoundary.d.ts +15 -0
- package/dist/Table/components/ErrorBoundary.js +56 -0
- package/dist/Table/helper.d.ts +14 -4
- package/dist/Table/helper.js +12 -3
- package/dist/Table/index.js +6 -6
- package/dist/Table/types.d.ts +8 -0
- package/dist/Watermark/index.d.ts +25 -0
- package/dist/Watermark/index.js +6 -0
- package/dist/Watermark/style/index.d.ts +2 -0
- package/dist/Watermark/style/index.js +2 -0
- package/dist/Watermark/style/index.less +1 -0
- package/dist/ald.min.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/index.less +1 -0
- package/package.json +2 -1
- package/dist/Menu/Divider.d.ts +0 -4
- package/dist/Menu/Divider.js +0 -6
- package/dist/Menu/MenuItem.d.ts +0 -30
- package/dist/Menu/MenuItem.js +0 -6
- package/dist/Menu/SubMenu.d.ts +0 -26
- package/dist/Menu/SubMenu.js +0 -18
package/dist/index.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export type { LayoutProps } from './Layout';
|
|
|
50
50
|
export { default as MemberPicker } from './MemberPicker';
|
|
51
51
|
export type { IUser, IMemberPickerProps as MemberPickerProps, TMemberPickerValue as MemberPickerValue, } from './MemberPicker/interface';
|
|
52
52
|
export { default as Menu } from './Menu';
|
|
53
|
-
export type {
|
|
53
|
+
export type { MenuDividerType, MenuHeaderType, MenuItemType, MenuProps, SubMenuType, } from './Menu';
|
|
54
54
|
export { default as Modal } from './Modal';
|
|
55
55
|
export type { ModalFuncProps, ModalProps } from './Modal';
|
|
56
56
|
export { default as Pagination } from './Pagination';
|
|
@@ -95,6 +95,7 @@ export type { TypographyProps } from './Typography';
|
|
|
95
95
|
export { default as Upload } from './Upload';
|
|
96
96
|
export type { UploadFile, UploadProps } from './Upload';
|
|
97
97
|
export { default as User } from './User';
|
|
98
|
+
export { default as Watermark } from './Watermark';
|
|
98
99
|
export { default as message } from './message';
|
|
99
100
|
export type { MessageArgsProps } from './message';
|
|
100
101
|
export { default as notification } from './notification';
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export { default as Tree } from "./Tree";
|
|
|
53
53
|
export { default as Typography } from "./Typography";
|
|
54
54
|
export { default as Upload } from "./Upload";
|
|
55
55
|
export { default as User } from "./User";
|
|
56
|
+
export { default as Watermark } from "./Watermark";
|
|
56
57
|
export { default as message } from "./message";
|
|
57
58
|
// alias, keep API the same as antd
|
|
58
59
|
|
package/dist/index.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aloudata/aloudata-design",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@ant-design/cssinjs": "^1.9.1",
|
|
58
58
|
"@radix-ui/react-scroll-area": "^1.0.4",
|
|
59
|
+
"@szhsin/react-menu": "^4.1.0",
|
|
59
60
|
"@tanstack/react-table": "^8.10.0",
|
|
60
61
|
"ahooks": "^3.7.8",
|
|
61
62
|
"antd": "5.4.3",
|
package/dist/Menu/Divider.d.ts
DELETED
package/dist/Menu/Divider.js
DELETED
package/dist/Menu/MenuItem.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MenuItemProps } from 'antd/lib/menu/MenuItem';
|
|
3
|
-
import { MenuClickEventHandler } from 'rc-menu/lib/interface';
|
|
4
|
-
export interface IMenuItemProps extends MenuItemProps {
|
|
5
|
-
/**
|
|
6
|
-
* @description 唯一标志
|
|
7
|
-
* @type string | number
|
|
8
|
-
* @default -
|
|
9
|
-
*/
|
|
10
|
-
key?: React.Key;
|
|
11
|
-
/**
|
|
12
|
-
* @description 是否禁用
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* @description 点击事件
|
|
18
|
-
* @type Function
|
|
19
|
-
* @default -
|
|
20
|
-
*/
|
|
21
|
-
onClick?: MenuClickEventHandler;
|
|
22
|
-
/**
|
|
23
|
-
* @description 类名
|
|
24
|
-
* @type string
|
|
25
|
-
* @default -
|
|
26
|
-
*/
|
|
27
|
-
className?: string;
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
}
|
|
30
|
-
export default function Menu(props: IMenuItemProps): React.JSX.Element;
|
package/dist/Menu/MenuItem.js
DELETED
package/dist/Menu/SubMenu.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { SubMenuProps } from 'antd/lib/menu/SubMenu';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface ISubMenuProps extends SubMenuProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description 唯一标志
|
|
6
|
-
* @type string | number
|
|
7
|
-
* @default -
|
|
8
|
-
*/
|
|
9
|
-
key: React.Key;
|
|
10
|
-
/**
|
|
11
|
-
* @description 是否禁用
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* @description 子菜单样式
|
|
17
|
-
* @default -
|
|
18
|
-
*/
|
|
19
|
-
popupClassName?: string;
|
|
20
|
-
/**
|
|
21
|
-
* @description 子菜单项值
|
|
22
|
-
*/
|
|
23
|
-
title?: React.ReactNode;
|
|
24
|
-
children?: React.ReactNode | React.ReactNode[];
|
|
25
|
-
}
|
|
26
|
-
export default function SubMenu(props: ISubMenuProps): React.JSX.Element;
|
package/dist/Menu/SubMenu.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var _excluded = ["popupClassName"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import { Menu as AntdMenu } from 'antd';
|
|
6
|
-
import classNames from 'classnames';
|
|
7
|
-
import React from 'react';
|
|
8
|
-
var AntdSubMenu = AntdMenu.SubMenu;
|
|
9
|
-
export default function SubMenu(props) {
|
|
10
|
-
var popupClassName = props.popupClassName,
|
|
11
|
-
otherProps = _objectWithoutProperties(props, _excluded);
|
|
12
|
-
var OFFSET_WIDTH = 8;
|
|
13
|
-
var OFFSET_HEIGHT = 0;
|
|
14
|
-
return /*#__PURE__*/React.createElement(AntdSubMenu, _extends({
|
|
15
|
-
popupClassName: classNames(popupClassName, 'ald-submenu'),
|
|
16
|
-
popupOffset: [OFFSET_WIDTH, OFFSET_HEIGHT]
|
|
17
|
-
}, otherProps));
|
|
18
|
-
}
|