@aloudata/aloudata-design 1.9.8 → 1.9.11
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/AldTable/helper.js +21 -23
- package/dist/AldTable/index.d.ts +2 -2
- package/dist/AldTable/index.js +40 -50
- package/dist/AldTable/style/index.less +26 -6
- package/dist/AldTable/types.d.ts +2 -0
- package/dist/App/index.js +2 -9
- package/dist/Avatar/component/Avatar/avatar.d.ts +2 -2
- package/dist/Avatar/component/Avatar/avatar.js +0 -2
- package/dist/Avatar/component/Avatar/index.d.ts +1 -1
- package/dist/Avatar/component/Avatar/index.js +6 -20
- package/dist/Breadcrumb/index.d.ts +1 -1
- package/dist/Breadcrumb/index.js +6 -16
- package/dist/Button/index.d.ts +4 -4
- package/dist/Button/index.js +21 -41
- package/dist/Checkbox/component/CheckboxGroup/index.d.ts +2 -2
- package/dist/Checkbox/component/CheckboxGroup/index.js +4 -10
- package/dist/Checkbox/index.d.ts +3 -3
- package/dist/Checkbox/index.js +5 -14
- package/dist/Checkbox/type.js +3 -4
- package/dist/ColorPicker/constant.js +2 -1
- package/dist/ColorPicker/index.d.ts +1 -1
- package/dist/ColorPicker/index.js +15 -42
- package/dist/ConfigProvider/defaultRenderEmpty.d.ts +1 -1
- package/dist/ConfigProvider/defaultRenderEmpty.js +0 -5
- package/dist/ConfigProvider/getUserList.d.ts +4 -4
- package/dist/ConfigProvider/getUserList.js +2 -2
- package/dist/ConfigProvider/hooks/useGetUserList.js +2 -5
- package/dist/ConfigProvider/index.js +2 -6
- package/dist/ConfigProvider/sizeContext.d.ts +1 -1
- package/dist/ConfigProvider/sizeContext.js +1 -1
- package/dist/DataPreviewTable/components/Body/Cell.d.ts +1 -1
- package/dist/DataPreviewTable/components/Body/Cell.js +4 -10
- package/dist/DataPreviewTable/components/Body/Error.d.ts +1 -1
- package/dist/DataPreviewTable/components/Body/Error.js +3 -5
- package/dist/DataPreviewTable/components/Body/SkeletonBody.d.ts +1 -1
- package/dist/DataPreviewTable/components/Body/SkeletonBody.js +10 -19
- package/dist/DataPreviewTable/components/Body/index.d.ts +1 -1
- package/dist/DataPreviewTable/components/Body/index.js +10 -19
- package/dist/DataPreviewTable/components/DragBar/index.d.ts +1 -1
- package/dist/DataPreviewTable/components/DragBar/index.js +14 -24
- package/dist/DataPreviewTable/components/Header/index.d.ts +2 -2
- package/dist/DataPreviewTable/components/Header/index.js +7 -15
- package/dist/DataPreviewTable/hooks/useDirection.js +32 -57
- package/dist/DataPreviewTable/index.js +22 -29
- package/dist/DataPreviewTable/interface.d.ts +2 -2
- package/dist/DataPreviewTable/interface.js +6 -9
- package/dist/DataPreviewTable/utils/findRange.js +2 -20
- package/dist/DataPreviewTable/utils/getColumnRange.js +3 -7
- package/dist/DataPreviewTable/utils/getRowRange.js +2 -8
- package/dist/DataPreviewTable/utils/getTableLayout.js +0 -1
- package/dist/DatePicker/index.d.ts +11 -11
- package/dist/DatePicker/index.js +85 -116
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/index.js +0 -3
- package/dist/DoubleCircleIcon/index.d.ts +2 -2
- package/dist/DoubleCircleIcon/index.js +7 -9
- package/dist/Dropdown/Button.d.ts +2 -2
- package/dist/Dropdown/Button.js +7 -11
- package/dist/Dropdown/index.d.ts +4 -4
- package/dist/Dropdown/index.js +11 -21
- package/dist/Dropdown/style/index.less +5 -0
- package/dist/Empty/image/Data.d.ts +2 -2
- package/dist/Empty/image/Data.js +0 -2
- package/dist/Empty/image/Search.d.ts +2 -2
- package/dist/Empty/image/Search.js +0 -2
- package/dist/Empty/image/SearchSmall.d.ts +2 -2
- package/dist/Empty/image/SearchSmall.js +0 -2
- package/dist/Empty/image/User.d.ts +2 -2
- package/dist/Empty/image/User.js +0 -2
- package/dist/Empty/image/WorkBook.d.ts +2 -2
- package/dist/Empty/image/WorkBook.js +0 -2
- package/dist/Empty/index.d.ts +1 -1
- package/dist/Empty/index.js +13 -23
- package/dist/Form/index.d.ts +4 -4
- package/dist/Form/index.js +16 -27
- package/dist/Icon/components/AlertTriangleDuotone.d.ts +1 -1
- package/dist/Icon/components/AlertTriangleDuotone.js +4 -11
- package/dist/Icon/components/CancelCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CancelCircleDuotone.js +9 -16
- package/dist/Icon/components/CheckCircleDuotone.d.ts +1 -1
- package/dist/Icon/components/CheckCircleDuotone.js +4 -11
- package/dist/Icon/components/Icon.d.ts +1 -1
- package/dist/Icon/components/Icon.js +9 -13
- package/dist/Icon/components/InfoCircleLine.d.ts +1 -1
- package/dist/Icon/components/InfoCircleLine.js +4 -11
- package/dist/Icon/components/createFromScripts.js +2 -8
- package/dist/IconButton/index.js +36 -57
- package/dist/IconButton/style/index.less +4 -0
- package/dist/Input/components/Group/index.d.ts +2 -2
- package/dist/Input/components/Group/index.js +4 -9
- package/dist/Input/components/Input/index.d.ts +2 -2
- package/dist/Input/components/Input/index.js +9 -17
- package/dist/Input/components/Password/index.js +4 -9
- package/dist/Input/components/TextArea/index.js +5 -10
- package/dist/InputNumber/index.d.ts +2 -2
- package/dist/InputNumber/index.js +13 -20
- package/dist/MemberPicker/components/MemberSelection.d.ts +2 -2
- package/dist/MemberPicker/components/MemberSelection.js +12 -20
- package/dist/MemberPicker/components/MultipleOption.d.ts +2 -2
- package/dist/MemberPicker/components/MultipleOption.js +8 -9
- package/dist/MemberPicker/components/NickLabel.js +2 -4
- package/dist/MemberPicker/components/Panel.d.ts +2 -2
- package/dist/MemberPicker/components/Panel.js +14 -25
- package/dist/MemberPicker/components/SelectedMemberTags.d.ts +2 -2
- package/dist/MemberPicker/components/SelectedMemberTags.js +2 -4
- package/dist/MemberPicker/components/SelectorFooter.d.ts +2 -2
- package/dist/MemberPicker/components/SingleOption.d.ts +2 -2
- package/dist/MemberPicker/components/SingleOption.js +9 -10
- package/dist/MemberPicker/index.js +46 -79
- package/dist/MemberPicker/interface.d.ts +2 -2
- package/dist/MemberPicker/utils/getUsersWithUserId.js +0 -1
- package/dist/Menu/Divider.d.ts +3 -3
- package/dist/Menu/MenuItem.d.ts +1 -1
- package/dist/Menu/SubMenu.d.ts +1 -1
- package/dist/Menu/SubMenu.js +1 -6
- package/dist/Menu/index.d.ts +2 -2
- package/dist/Menu/index.js +7 -16
- package/dist/Menu/style/dropdown.less +4 -2
- package/dist/Modal/index.d.ts +4 -4
- package/dist/Modal/index.js +108 -130
- package/dist/Modal/locale.js +4 -6
- package/dist/Navigator/components/Header/index.d.ts +2 -2
- package/dist/Navigator/components/Header/index.js +0 -2
- package/dist/Navigator/components/Menu/index.d.ts +2 -2
- package/dist/Navigator/components/Menu/index.js +8 -19
- package/dist/Navigator/components/MenuItem/index.d.ts +1 -1
- package/dist/Navigator/components/MenuItem/index.js +6 -9
- package/dist/Navigator/index.d.ts +1 -1
- package/dist/Navigator/index.js +5 -7
- package/dist/Pagination/index.d.ts +3 -3
- package/dist/Pagination/index.js +18 -43
- package/dist/Popconfirm/index.d.ts +2 -2
- package/dist/Popconfirm/index.js +19 -27
- package/dist/Popover/index.d.ts +2 -2
- package/dist/Popover/index.js +2 -9
- package/dist/Progress/index.js +21 -33
- package/dist/Radio/components/Group/index.d.ts +1 -1
- package/dist/Radio/components/Group/index.js +27 -36
- package/dist/Radio/components/Radio/index.d.ts +2 -2
- package/dist/Radio/components/Radio/index.js +10 -18
- package/dist/Radio/interface/radioGroup.d.ts +3 -3
- package/dist/Result/index.d.ts +7 -7
- package/dist/Result/index.js +17 -26
- package/dist/Result/noFound.js +0 -3
- package/dist/Result/serverError.js +0 -3
- package/dist/Result/unauthorized.js +1 -4
- package/dist/ScrollArea/index.js +6 -13
- package/dist/Select/components/MultipleOption.d.ts +2 -2
- package/dist/Select/components/MultipleOption.js +4 -8
- package/dist/Select/components/SingleOption.d.ts +2 -2
- package/dist/Select/components/SingleOption.js +5 -9
- package/dist/Select/index.d.ts +2 -2
- package/dist/Select/index.js +66 -134
- package/dist/Spin/CustomIcon/index.d.ts +2 -2
- package/dist/Spin/CustomIcon/index.js +0 -2
- package/dist/Spin/Icon/index.d.ts +2 -2
- package/dist/Spin/index.d.ts +2 -2
- package/dist/Spin/index.js +1 -10
- package/dist/Steps/components/ProcessIcon/index.d.ts +2 -2
- package/dist/Steps/components/ProcessIcon/index.js +0 -2
- package/dist/Steps/components/Step/index.d.ts +3 -3
- package/dist/Steps/components/Step/index.js +2 -8
- package/dist/Steps/index.d.ts +3 -3
- package/dist/Steps/index.js +8 -10
- package/dist/Switch/index.js +17 -30
- package/dist/Table/Table.js +88 -131
- package/dist/Table/components/Empty/index.d.ts +2 -2
- package/dist/Table/components/Empty/index.js +0 -2
- package/dist/Table/components/Loading/index.d.ts +2 -2
- package/dist/Table/components/Loading/index.js +0 -2
- package/dist/Table/components/TableBodyRowList/index.d.ts +2 -2
- package/dist/Table/components/TableBodyRowList/index.js +19 -39
- package/dist/Table/components/TableHead/index.d.ts +1 -1
- package/dist/Table/components/TableHead/index.js +56 -82
- package/dist/Table/hooks/useFrame.d.ts +1 -1
- package/dist/Table/hooks/useFrame.js +9 -24
- package/dist/Table/interface.d.ts +1 -1
- package/dist/Table/utils.js +8 -28
- package/dist/Tabs/TabPane.d.ts +2 -2
- package/dist/Tabs/index.d.ts +2 -2
- package/dist/Tabs/index.js +18 -33
- package/dist/Tooltip/index.d.ts +2 -2
- package/dist/Tooltip/index.js +12 -12
- package/dist/Tree/demo/basic/index.d.ts +2 -2
- package/dist/Tree/index.d.ts +1 -1
- package/dist/Tree/index.js +2 -4
- package/dist/_utils/hooks/useControlledState.js +9 -21
- package/dist/_utils/hooks/useId.js +4 -5
- package/dist/_utils/hooks/usePrefixCls.js +2 -5
- package/dist/index.js +3 -1
- package/dist/locale-provider/context.d.ts +1 -1
- package/dist/locale-provider/index.d.ts +1 -1
- package/dist/locale-provider/index.js +8 -33
- package/dist/message/index.js +3 -7
- package/dist/notification/demo/index.d.ts +2 -2
- package/dist/notification/demo/index.js +0 -1
- package/dist/notification/index.js +23 -32
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
-
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import classNames from 'classnames';
|
|
8
8
|
import _ from 'lodash';
|
|
9
9
|
import React, { useContext, useEffect, useRef } from 'react';
|
|
@@ -13,25 +13,21 @@ export default function Radio(props) {
|
|
|
13
13
|
var groupContext = useContext(RadioGroupContext);
|
|
14
14
|
var labelRef = useRef(null);
|
|
15
15
|
var id = getUUID().toString();
|
|
16
|
-
|
|
17
16
|
var radioProps = _objectSpread({}, props);
|
|
18
|
-
|
|
19
17
|
if (!_.isEmpty(groupContext)) {
|
|
20
18
|
radioProps.disabled = groupContext.disabled || props.disabled;
|
|
21
19
|
radioProps.checked = !props.disabled && groupContext.value === props.value;
|
|
22
20
|
} else {
|
|
23
21
|
radioProps.checked = !('checked' in props) ? props.defaultChecked : radioProps.checked;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
}
|
|
23
|
+
// 设置input外层盒子的class
|
|
27
24
|
var aldRadioClass = classNames('ald-radio', {
|
|
28
25
|
'ald-radio-checked': radioProps.checked,
|
|
29
26
|
'ald-radio-disabled': radioProps.disabled
|
|
30
|
-
});
|
|
31
|
-
|
|
27
|
+
});
|
|
28
|
+
// 根据属性设置最外层的class
|
|
32
29
|
var getWrapperClass = function getWrapperClass() {
|
|
33
30
|
var otherClass = '';
|
|
34
|
-
|
|
35
31
|
if (groupContext.type === 'button') {
|
|
36
32
|
if (groupContext.radioGroupStyle === 'filled') {
|
|
37
33
|
otherClass = 'ald-radio-button-wrapper-filled';
|
|
@@ -56,30 +52,26 @@ export default function Radio(props) {
|
|
|
56
52
|
// 当type未设置或者是radio时
|
|
57
53
|
otherClass = 'ald-radio-wrapper';
|
|
58
54
|
}
|
|
59
|
-
|
|
60
55
|
return classNames('ald-radio-label', otherClass, {
|
|
61
56
|
'ald-radio-wrapper-checked': radioProps.checked,
|
|
62
57
|
'ald-radio-wrapper-disabled': radioProps.disabled
|
|
63
58
|
});
|
|
64
|
-
};
|
|
65
|
-
|
|
59
|
+
};
|
|
66
60
|
|
|
61
|
+
// filled button模式下,更改滑块的位置
|
|
67
62
|
useEffect(function () {
|
|
68
63
|
var _groupContext$sliderR;
|
|
69
|
-
|
|
70
64
|
if (radioProps.checked && groupContext !== null && groupContext !== void 0 && (_groupContext$sliderR = groupContext.sliderRef) !== null && _groupContext$sliderR !== void 0 && _groupContext$sliderR.current && labelRef !== null && labelRef !== void 0 && labelRef.current) {
|
|
71
65
|
groupContext.sliderRef.current.style.left = "".concat(labelRef.current.offsetLeft, "px");
|
|
72
66
|
groupContext.sliderRef.current.style.width = "".concat(labelRef.current.offsetWidth, "px");
|
|
73
67
|
}
|
|
74
68
|
}, [groupContext.sliderRef, radioProps.checked]);
|
|
75
|
-
|
|
76
69
|
var onChange = function onChange() {
|
|
77
70
|
if (groupContext !== null && groupContext !== void 0 && groupContext.onChange) {
|
|
78
71
|
// input事件的value会被toString,所以此处进行一个覆盖
|
|
79
72
|
groupContext.onChange(props.value);
|
|
80
73
|
}
|
|
81
74
|
};
|
|
82
|
-
|
|
83
75
|
return /*#__PURE__*/React.createElement("label", {
|
|
84
76
|
className: getWrapperClass(),
|
|
85
77
|
htmlFor: id,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type TRadioGroupStyle = 'border' | 'filled' | 'borderPrimary' | 'filter';
|
|
3
|
+
export type TRadioSize = 'large' | 'middle' | 'small' | 'default';
|
|
4
|
+
export type TRadioType = 'radio' | 'button' | 'iconButton';
|
|
5
5
|
export interface IRadioGroupProps {
|
|
6
6
|
/**
|
|
7
7
|
* @description 按钮组的样式 'border' | 'filled'
|
package/dist/Result/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const IconMap: {
|
|
3
|
-
success: JSX.Element;
|
|
4
|
-
error: JSX.Element;
|
|
5
|
-
info: JSX.Element;
|
|
6
|
-
warning: JSX.Element;
|
|
3
|
+
success: React.JSX.Element;
|
|
4
|
+
error: React.JSX.Element;
|
|
5
|
+
info: React.JSX.Element;
|
|
6
|
+
warning: React.JSX.Element;
|
|
7
7
|
};
|
|
8
8
|
export declare const ExceptionMap: {
|
|
9
9
|
noFound: React.FC<{
|
|
@@ -16,9 +16,9 @@ export declare const ExceptionMap: {
|
|
|
16
16
|
direction?: ResultDirectionType | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
19
|
+
export type ExceptionStatusType = 'unauthorized' | 'noFound' | 'serverError';
|
|
20
|
+
export type ResultStatusType = ExceptionStatusType | keyof typeof IconMap;
|
|
21
|
+
export type ResultDirectionType = 'horizontal' | 'vertical';
|
|
22
22
|
export interface ResultProps {
|
|
23
23
|
icon?: React.ReactNode;
|
|
24
24
|
status?: ResultStatusType;
|
package/dist/Result/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
4
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
5
|
import classNames from 'classnames';
|
|
4
6
|
import React from 'react';
|
|
5
7
|
import { AlertTriangleDuotone, CancelCircleDuotone, CheckCircleDuotone, InfoCircleLine } from "../Icon";
|
|
@@ -33,14 +35,12 @@ export var ExceptionMap = {
|
|
|
33
35
|
};
|
|
34
36
|
// ExceptionImageMap keys
|
|
35
37
|
var ExceptionStatus = Object.keys(ExceptionMap);
|
|
36
|
-
|
|
37
38
|
var Icon = function Icon(_ref) {
|
|
38
39
|
var icon = _ref.icon,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
status = _ref.status,
|
|
41
|
+
_ref$direction = _ref.direction,
|
|
42
|
+
direction = _ref$direction === void 0 ? 'vertical' : _ref$direction;
|
|
42
43
|
var className = classNames("ald-result-icon");
|
|
43
|
-
|
|
44
44
|
if (ExceptionStatus.includes("".concat(status))) {
|
|
45
45
|
// 404 403 500
|
|
46
46
|
var SVGComponent = ExceptionMap[status];
|
|
@@ -50,31 +50,26 @@ var Icon = function Icon(_ref) {
|
|
|
50
50
|
direction: direction
|
|
51
51
|
}));
|
|
52
52
|
}
|
|
53
|
-
|
|
54
53
|
var iconNode = IconMap[status];
|
|
55
|
-
|
|
56
54
|
if (icon === null || icon === false) {
|
|
57
55
|
return null;
|
|
58
56
|
}
|
|
59
|
-
|
|
60
57
|
return /*#__PURE__*/React.createElement("div", {
|
|
61
58
|
className: className
|
|
62
59
|
}, icon || iconNode);
|
|
63
60
|
};
|
|
64
|
-
|
|
65
61
|
var Result = function Result(_ref2) {
|
|
66
62
|
var className = _ref2.className,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
63
|
+
subTitle = _ref2.subTitle,
|
|
64
|
+
title = _ref2.title,
|
|
65
|
+
style = _ref2.style,
|
|
66
|
+
children = _ref2.children,
|
|
67
|
+
_ref2$status = _ref2.status,
|
|
68
|
+
status = _ref2$status === void 0 ? 'info' : _ref2$status,
|
|
69
|
+
_ref2$direction = _ref2.direction,
|
|
70
|
+
direction = _ref2$direction === void 0 ? 'vertical' : _ref2$direction,
|
|
71
|
+
icon = _ref2.icon,
|
|
72
|
+
extra = _ref2.extra;
|
|
78
73
|
if (direction === 'horizontal') {
|
|
79
74
|
return /*#__PURE__*/React.createElement("div", {
|
|
80
75
|
className: classNames('ald-result-horizontal', className),
|
|
@@ -97,7 +92,6 @@ var Result = function Result(_ref2) {
|
|
|
97
92
|
direction: direction
|
|
98
93
|
})));
|
|
99
94
|
}
|
|
100
|
-
|
|
101
95
|
return /*#__PURE__*/React.createElement("div", {
|
|
102
96
|
className: classNames('ald-result-vertical', className),
|
|
103
97
|
style: style
|
|
@@ -114,13 +108,10 @@ var Result = function Result(_ref2) {
|
|
|
114
108
|
className: "ald-result-content"
|
|
115
109
|
}, children));
|
|
116
110
|
};
|
|
117
|
-
|
|
118
111
|
Result.PRESENTED_IMAGE_403 = ExceptionMap['unauthorized'];
|
|
119
112
|
Result.PRESENTED_IMAGE_404 = ExceptionMap['noFound'];
|
|
120
113
|
Result.PRESENTED_IMAGE_500 = ExceptionMap['serverError'];
|
|
121
|
-
|
|
122
114
|
if (process.env.NODE_ENV !== 'production') {
|
|
123
115
|
Result.displayName = 'Result';
|
|
124
116
|
}
|
|
125
|
-
|
|
126
117
|
export default Result;
|