@oceanbase/design 0.2.12 → 0.2.14
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/design.min.js +1 -1
- package/es/_util/genComponentStyleHook.d.ts +4 -2
- package/es/_util/genComponentStyleHook.js +2 -2
- package/es/affix/index.d.ts +1 -0
- package/es/affix/index.js +1 -0
- package/es/alert/index.js +2 -3
- package/es/alert/style/index.d.ts +1 -1
- package/es/alert/style/index.js +21 -4
- package/es/anchor/index.d.ts +1 -0
- package/es/anchor/index.js +1 -0
- package/es/app/index.d.ts +1 -0
- package/es/app/index.js +1 -0
- package/es/auto-complete/index.d.ts +1 -0
- package/es/auto-complete/index.js +1 -0
- package/es/avatar/index.d.ts +1 -0
- package/es/avatar/index.js +1 -0
- package/es/badge/index.d.ts +1 -0
- package/es/badge/index.js +1 -0
- package/es/button/index.d.ts +2 -2
- package/es/button/index.js +2 -3
- package/es/button/style/index.d.ts +1 -1
- package/es/calendar/index.d.ts +1 -0
- package/es/calendar/index.js +1 -0
- package/es/callapse/index.d.ts +1 -0
- package/es/callapse/index.js +1 -0
- package/es/card/index.js +2 -3
- package/es/card/style/index.d.ts +1 -1
- package/es/card/style/index.js +2 -2
- package/es/carousel/index.d.ts +1 -0
- package/es/carousel/index.js +1 -0
- package/es/cascader/index.d.ts +1 -0
- package/es/cascader/index.js +1 -0
- package/es/checkbox/index.d.ts +1 -0
- package/es/checkbox/index.js +1 -0
- package/es/color-picker/index.d.ts +1 -0
- package/es/color-picker/index.js +1 -0
- package/es/config-provider/index.d.ts +19 -3
- package/es/config-provider/index.js +16 -3
- package/es/config-provider/navigate.d.ts +30 -0
- package/es/config-provider/navigate.js +1 -0
- package/es/date-picker/index.d.ts +1 -0
- package/es/date-picker/index.js +1 -0
- package/es/descriptions/index.d.ts +1 -1
- package/es/descriptions/index.js +5 -7
- package/es/descriptions/style/index.d.ts +1 -1
- package/es/divider/index.d.ts +1 -0
- package/es/divider/index.js +1 -0
- package/es/drawer/index.d.ts +1 -0
- package/es/drawer/index.js +1 -0
- package/es/dropdown/index.d.ts +1 -0
- package/es/dropdown/index.js +1 -0
- package/es/empty/index.d.ts +1 -0
- package/es/empty/index.js +1 -0
- package/es/float-button/index.d.ts +1 -0
- package/es/float-button/index.js +1 -0
- package/es/form/FormItem.d.ts +2 -2
- package/es/grid/index.d.ts +1 -0
- package/es/grid/index.js +1 -0
- package/es/image/index.d.ts +1 -0
- package/es/image/index.js +1 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +1 -0
- package/es/input/index.d.ts +1 -0
- package/es/input/index.js +1 -0
- package/es/input-number/index.d.ts +1 -0
- package/es/input-number/index.js +1 -0
- package/es/layout/index.d.ts +1 -0
- package/es/layout/index.js +1 -0
- package/es/list/index.d.ts +1 -0
- package/es/list/index.js +1 -0
- package/es/locale/index.d.ts +1 -0
- package/es/locale/index.js +1 -0
- package/es/lottie/index.d.ts +16 -0
- package/es/lottie/index.js +65 -0
- package/es/mentions/index.d.ts +1 -0
- package/es/mentions/index.js +1 -0
- package/es/menu/index.d.ts +1 -0
- package/es/menu/index.js +1 -0
- package/es/modal/index.d.ts +2 -2
- package/es/modal/index.js +8 -5
- package/es/modal/style/index.d.ts +1 -1
- package/es/modal/style/index.js +21 -4
- package/es/pagination/index.d.ts +1 -0
- package/es/pagination/index.js +1 -0
- package/es/popconfirm/index.d.ts +1 -0
- package/es/popconfirm/index.js +1 -0
- package/es/popover/index.d.ts +1 -0
- package/es/popover/index.js +1 -0
- package/es/progress/index.d.ts +1 -0
- package/es/progress/index.js +1 -0
- package/es/qrcode/index.d.ts +1 -0
- package/es/qrcode/index.js +1 -0
- package/es/radio/index.d.ts +1 -0
- package/es/radio/index.js +1 -0
- package/es/rate/index.d.ts +1 -0
- package/es/rate/index.js +1 -0
- package/es/result/index.d.ts +1 -0
- package/es/result/index.js +1 -0
- package/es/segmented/index.d.ts +1 -0
- package/es/segmented/index.js +1 -0
- package/es/select/index.d.ts +1 -0
- package/es/select/index.js +1 -0
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/index.js +1 -0
- package/es/slider/index.d.ts +1 -0
- package/es/slider/index.js +1 -0
- package/es/space/index.d.ts +1 -0
- package/es/space/index.js +1 -0
- package/es/spin/assets/spin-gray.json +1 -0
- package/es/spin/assets/spin.json +1 -0
- package/es/spin/index.d.ts +12 -0
- package/es/spin/index.js +49 -0
- package/es/spin/style/index.d.ts +13 -0
- package/es/spin/style/index.js +70 -0
- package/es/static-function/index.d.ts +4 -2
- package/es/static-function/index.js +9 -6
- package/es/statistic/index.d.ts +1 -0
- package/es/statistic/index.js +1 -0
- package/es/steps/index.d.ts +1 -0
- package/es/steps/index.js +1 -0
- package/es/switch/index.d.ts +1 -0
- package/es/switch/index.js +1 -0
- package/es/table/index.d.ts +2 -2
- package/es/table/index.js +8 -4
- package/es/table/style/index.d.ts +1 -1
- package/es/tabs/index.d.ts +1 -1
- package/es/tabs/index.js +5 -4
- package/es/tabs/style/index.d.ts +3 -2
- package/es/tag/index.d.ts +1 -0
- package/es/tag/index.js +1 -0
- package/es/theme/index.d.ts +3 -48
- package/es/theme/index.js +6 -3
- package/es/theme/internal.d.ts +1 -0
- package/es/theme/internal.js +1 -0
- package/es/time-picker/index.d.ts +1 -0
- package/es/time-picker/index.js +1 -0
- package/es/timeline/index.d.ts +1 -0
- package/es/timeline/index.js +1 -0
- package/es/tooltip/MouseTooltip.js +1 -1
- package/es/tooltip/index.d.ts +2 -2
- package/es/tooltip/index.js +2 -2
- package/es/tour/index.d.ts +1 -0
- package/es/tour/index.js +1 -0
- package/es/transfer/index.d.ts +1 -0
- package/es/transfer/index.js +1 -0
- package/es/tree/index.d.ts +1 -0
- package/es/tree/index.js +1 -0
- package/es/tree-select/index.d.ts +1 -0
- package/es/tree-select/index.js +1 -0
- package/es/typography/index.d.ts +1 -0
- package/es/typography/index.js +1 -0
- package/es/upload/index.d.ts +1 -0
- package/es/upload/index.js +1 -0
- package/es/watermark/index.d.ts +1 -0
- package/es/watermark/index.js +1 -0
- package/lib/_util/genComponentStyleHook.d.ts +4 -2
- package/lib/_util/genComponentStyleHook.js +8 -4
- package/lib/affix/index.d.ts +1 -0
- package/lib/affix/index.js +23 -0
- package/lib/alert/index.js +2 -3
- package/lib/alert/style/index.d.ts +1 -1
- package/lib/alert/style/index.js +20 -1
- package/lib/anchor/index.d.ts +1 -0
- package/lib/anchor/index.js +23 -0
- package/lib/app/index.d.ts +1 -0
- package/lib/app/index.js +23 -0
- package/lib/auto-complete/index.d.ts +1 -0
- package/lib/auto-complete/index.js +23 -0
- package/lib/avatar/index.d.ts +1 -0
- package/lib/avatar/index.js +23 -0
- package/lib/badge/index.d.ts +1 -0
- package/lib/badge/index.js +23 -0
- package/lib/button/index.d.ts +2 -2
- package/lib/button/index.js +2 -2
- package/lib/button/style/index.d.ts +1 -1
- package/lib/calendar/index.d.ts +1 -0
- package/lib/calendar/index.js +23 -0
- package/lib/callapse/index.d.ts +1 -0
- package/lib/callapse/index.js +23 -0
- package/lib/card/index.js +2 -3
- package/lib/card/style/index.d.ts +1 -1
- package/lib/card/style/index.js +5 -7
- package/lib/carousel/index.d.ts +1 -0
- package/lib/carousel/index.js +23 -0
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/index.js +23 -0
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/checkbox/index.js +23 -0
- package/lib/color-picker/index.d.ts +1 -0
- package/lib/color-picker/index.js +23 -0
- package/lib/config-provider/index.d.ts +19 -3
- package/lib/config-provider/index.js +17 -2
- package/lib/config-provider/navigate.d.ts +30 -0
- package/lib/config-provider/navigate.js +17 -0
- package/lib/date-picker/index.d.ts +1 -0
- package/lib/date-picker/index.js +23 -0
- package/lib/descriptions/index.d.ts +1 -1
- package/lib/descriptions/index.js +4 -5
- package/lib/descriptions/style/index.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -0
- package/lib/divider/index.js +23 -0
- package/lib/drawer/index.d.ts +1 -0
- package/lib/drawer/index.js +23 -0
- package/lib/dropdown/index.d.ts +1 -0
- package/lib/dropdown/index.js +23 -0
- package/lib/empty/index.d.ts +1 -0
- package/lib/empty/index.js +23 -0
- package/lib/float-button/index.d.ts +1 -0
- package/lib/float-button/index.js +23 -0
- package/lib/form/FormItem.d.ts +2 -2
- package/lib/grid/index.d.ts +1 -0
- package/lib/grid/index.js +23 -0
- package/lib/image/index.d.ts +1 -0
- package/lib/image/index.js +23 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -0
- package/lib/input/index.d.ts +1 -0
- package/lib/input/index.js +23 -0
- package/lib/input-number/index.d.ts +1 -0
- package/lib/input-number/index.js +23 -0
- package/lib/layout/index.d.ts +1 -0
- package/lib/layout/index.js +23 -0
- package/lib/list/index.d.ts +1 -0
- package/lib/list/index.js +23 -0
- package/lib/locale/index.d.ts +1 -0
- package/lib/locale/index.js +6 -0
- package/lib/lottie/index.d.ts +16 -0
- package/lib/lottie/index.js +79 -0
- package/lib/mentions/index.d.ts +1 -0
- package/lib/mentions/index.js +23 -0
- package/lib/menu/index.d.ts +1 -0
- package/lib/menu/index.js +23 -0
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +7 -3
- package/lib/modal/style/index.d.ts +1 -1
- package/lib/modal/style/index.js +26 -1
- package/lib/pagination/index.d.ts +1 -0
- package/lib/pagination/index.js +23 -0
- package/lib/popconfirm/index.d.ts +1 -0
- package/lib/popconfirm/index.js +23 -0
- package/lib/popover/index.d.ts +1 -0
- package/lib/popover/index.js +23 -0
- package/lib/progress/index.d.ts +1 -0
- package/lib/progress/index.js +23 -0
- package/lib/qrcode/index.d.ts +1 -0
- package/lib/qrcode/index.js +23 -0
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/index.js +23 -0
- package/lib/rate/index.d.ts +1 -0
- package/lib/rate/index.js +23 -0
- package/lib/result/index.d.ts +1 -0
- package/lib/result/index.js +23 -0
- package/lib/segmented/index.d.ts +1 -0
- package/lib/segmented/index.js +23 -0
- package/lib/select/index.d.ts +1 -0
- package/lib/select/index.js +23 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/index.js +23 -0
- package/lib/slider/index.d.ts +1 -0
- package/lib/slider/index.js +23 -0
- package/lib/space/index.d.ts +1 -0
- package/lib/space/index.js +23 -0
- package/lib/spin/assets/spin-gray.json +1 -0
- package/lib/spin/assets/spin.json +1 -0
- package/lib/spin/index.d.ts +12 -0
- package/lib/spin/index.js +85 -0
- package/lib/spin/style/index.d.ts +13 -0
- package/lib/spin/style/index.js +105 -0
- package/lib/static-function/index.d.ts +4 -2
- package/lib/static-function/index.js +12 -6
- package/lib/statistic/index.d.ts +1 -0
- package/lib/statistic/index.js +23 -0
- package/lib/steps/index.d.ts +1 -0
- package/lib/steps/index.js +23 -0
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/index.js +23 -0
- package/lib/table/index.d.ts +2 -2
- package/lib/table/index.js +7 -4
- package/lib/table/style/index.d.ts +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/index.js +2 -2
- package/lib/tabs/style/index.d.ts +3 -2
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/index.js +23 -0
- package/lib/theme/index.d.ts +3 -48
- package/lib/theme/index.js +5 -4
- package/lib/theme/internal.d.ts +1 -0
- package/lib/theme/internal.js +23 -0
- package/lib/time-picker/index.d.ts +1 -0
- package/lib/time-picker/index.js +23 -0
- package/lib/timeline/index.d.ts +1 -0
- package/lib/timeline/index.js +23 -0
- package/lib/tooltip/MouseTooltip.js +1 -1
- package/lib/tooltip/index.d.ts +2 -2
- package/lib/tooltip/index.js +2 -2
- package/lib/tour/index.d.ts +1 -0
- package/lib/tour/index.js +23 -0
- package/lib/transfer/index.d.ts +1 -0
- package/lib/transfer/index.js +23 -0
- package/lib/tree/index.d.ts +1 -0
- package/lib/tree/index.js +23 -0
- package/lib/tree-select/index.d.ts +1 -0
- package/lib/tree-select/index.js +23 -0
- package/lib/typography/index.d.ts +1 -0
- package/lib/typography/index.js +23 -0
- package/lib/upload/index.d.ts +1 -0
- package/lib/upload/index.js +23 -0
- package/lib/watermark/index.d.ts +1 -0
- package/lib/watermark/index.js +23 -0
- package/package.json +10 -10
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
3
3
|
import type { ComponentTokenMap } from 'antd/es/theme/interface';
|
|
4
4
|
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import type { GlobalToken } from 'antd/es/theme/interface';
|
|
6
|
+
import type { OverrideTokenWithoutDerivative } from 'antd/es/theme/util/genComponentStyleHook';
|
|
7
|
+
export type ComponentName = keyof ComponentTokenMap;
|
|
8
|
+
export declare function genComponentStyleHook(componentName: ComponentName, styleFn: GenerateStyle<FullToken<ComponentName>>, getDefaultToken?: OverrideTokenWithoutDerivative[ComponentName] | ((token: GlobalToken) => OverrideTokenWithoutDerivative[ComponentName])): (prefixCls: string) => {
|
|
7
9
|
wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
8
10
|
hashId: string;
|
|
9
11
|
};
|
|
@@ -5,11 +5,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { genComponentStyleHook as antGenComponentStyleHook } from 'antd/es/theme/internal';
|
|
8
|
-
export function genComponentStyleHook(componentName, styleFn) {
|
|
8
|
+
export function genComponentStyleHook(componentName, styleFn, getDefaultToken) {
|
|
9
9
|
return function (prefixCls) {
|
|
10
10
|
var useStyle = antGenComponentStyleHook("OB-".concat(componentName), function (token) {
|
|
11
11
|
return [styleFn(token)];
|
|
12
|
-
});
|
|
12
|
+
}, getDefaultToken);
|
|
13
13
|
var _useStyle = useStyle(prefixCls),
|
|
14
14
|
_useStyle2 = _slicedToArray(_useStyle, 2),
|
|
15
15
|
wrapSSR = _useStyle2[0],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/affix';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/affix';
|
package/es/alert/index.js
CHANGED
|
@@ -23,9 +23,8 @@ var Alert = function Alert(_ref) {
|
|
|
23
23
|
getPrefixCls = _useContext.getPrefixCls;
|
|
24
24
|
var prefixCls = getPrefixCls('alert', customizePrefixCls);
|
|
25
25
|
var _useStyle = useStyle(prefixCls),
|
|
26
|
-
wrapSSR = _useStyle.wrapSSR
|
|
27
|
-
|
|
28
|
-
var alertCls = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-ghost"), ghost), _defineProperty(_classNames, "".concat(prefixCls, "-colored"), colored), _classNames), className, hashId);
|
|
26
|
+
wrapSSR = _useStyle.wrapSSR;
|
|
27
|
+
var alertCls = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-ghost"), ghost), _defineProperty(_classNames, "".concat(prefixCls, "-colored"), colored), _classNames), className);
|
|
29
28
|
return wrapSSR( /*#__PURE__*/React.createElement(AntAlert, _extends({
|
|
30
29
|
prefixCls: customizePrefixCls,
|
|
31
30
|
className: alertCls
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
|
|
3
|
-
export
|
|
3
|
+
export type AlertToken = FullToken<'Alert'>;
|
|
4
4
|
export declare const genAlertStyle: GenerateStyle<AlertToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
6
6
|
wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
package/es/alert/style/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var genColoredStyle = function genColoredStyle(color, colorHover, token) {
|
|
|
41
41
|
}), _$concat)), _ref;
|
|
42
42
|
};
|
|
43
43
|
export var genAlertStyle = function genAlertStyle(token) {
|
|
44
|
-
var _$concat$concat, _$concat$concat$conca, _$
|
|
44
|
+
var _$concat2, _$concat$concat, _$concat$concat$conca, _$concat3, _ref2;
|
|
45
45
|
var componentCls = token.componentCls,
|
|
46
46
|
colorSuccess = token.colorSuccess,
|
|
47
47
|
colorSuccessHover = token.colorSuccessHover,
|
|
@@ -50,8 +50,25 @@ export var genAlertStyle = function genAlertStyle(token) {
|
|
|
50
50
|
colorWarning = token.colorWarning,
|
|
51
51
|
colorWarningHover = token.colorWarningHover,
|
|
52
52
|
colorError = token.colorError,
|
|
53
|
-
colorErrorHover = token.colorErrorHover
|
|
54
|
-
|
|
53
|
+
colorErrorHover = token.colorErrorHover,
|
|
54
|
+
colorIcon = token.colorIcon,
|
|
55
|
+
colorIconHover = token.colorIconHover,
|
|
56
|
+
motionDurationMid = token.motionDurationMid;
|
|
57
|
+
// height = fontSize * lineHeight
|
|
58
|
+
var height = token.fontSize * token.lineHeight;
|
|
59
|
+
return _ref2 = {}, _defineProperty(_ref2, "".concat(componentCls), (_$concat2 = {
|
|
60
|
+
// vertical align to flex-start
|
|
61
|
+
alignItems: 'flex-start'
|
|
62
|
+
}, _defineProperty(_$concat2, "".concat(componentCls, "-icon"), {
|
|
63
|
+
height: height
|
|
64
|
+
}), _defineProperty(_$concat2, "".concat(componentCls, "-close-icon"), {
|
|
65
|
+
height: height,
|
|
66
|
+
color: colorIcon,
|
|
67
|
+
transition: "color ".concat(motionDurationMid),
|
|
68
|
+
'&:hover': {
|
|
69
|
+
color: colorIconHover
|
|
70
|
+
}
|
|
71
|
+
}), _$concat2)), _defineProperty(_ref2, "".concat(componentCls).concat(componentCls, "-with-description"), (_$concat$concat = {
|
|
55
72
|
paddingBlock: token.padding
|
|
56
73
|
}, _defineProperty(_$concat$concat, "".concat(componentCls, "-message"), {
|
|
57
74
|
marginBottom: token.marginXXS
|
|
@@ -63,7 +80,7 @@ export var genAlertStyle = function genAlertStyle(token) {
|
|
|
63
80
|
border: 'none',
|
|
64
81
|
padding: 0,
|
|
65
82
|
borderRadius: 0
|
|
66
|
-
}), _defineProperty(_ref2, "".concat(componentCls, "-colored"), (_$
|
|
83
|
+
}), _defineProperty(_ref2, "".concat(componentCls, "-colored"), (_$concat3 = {}, _defineProperty(_$concat3, "&".concat(componentCls, "-success"), genColoredStyle(colorSuccess, colorSuccessHover, token)), _defineProperty(_$concat3, "&".concat(componentCls, "-info"), genColoredStyle(colorInfo, colorInfoHover, token)), _defineProperty(_$concat3, "&".concat(componentCls, "-warning"), genColoredStyle(colorWarning, colorWarningHover, token)), _defineProperty(_$concat3, "&".concat(componentCls, "-error"), genColoredStyle(colorError, colorErrorHover, token)), _$concat3)), _ref2;
|
|
67
84
|
};
|
|
68
85
|
export default (function (prefixCls) {
|
|
69
86
|
var useStyle = genComponentStyleHook('Alert', function (token) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/anchor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/anchor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/app';
|
package/es/app/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/app';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/auto-complete';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/auto-complete';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/avatar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/avatar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/badge';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/badge';
|
package/es/button/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export * from 'antd/es/button';
|
|
4
|
-
export
|
|
4
|
+
export type ButtonProps = AntButtonProps;
|
|
5
5
|
declare const Button: {
|
|
6
6
|
({ prefixCls: customizePrefixCls, className, ...restProps }: ButtonProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7
7
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
8
|
-
__ANT_BUTTON:
|
|
8
|
+
__ANT_BUTTON: boolean;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
11
|
export default Button;
|
package/es/button/index.js
CHANGED
|
@@ -16,9 +16,8 @@ var Button = function Button(_ref) {
|
|
|
16
16
|
getPrefixCls = _useContext.getPrefixCls;
|
|
17
17
|
var prefixCls = getPrefixCls('btn', customizePrefixCls);
|
|
18
18
|
var _useStyle = useStyle(prefixCls),
|
|
19
|
-
wrapSSR = _useStyle.wrapSSR
|
|
20
|
-
|
|
21
|
-
var buttonCls = classNames(className, hashId);
|
|
19
|
+
wrapSSR = _useStyle.wrapSSR;
|
|
20
|
+
var buttonCls = classNames(className);
|
|
22
21
|
return wrapSSR( /*#__PURE__*/React.createElement(AntButton, _extends({
|
|
23
22
|
prefixCls: customizePrefixCls,
|
|
24
23
|
className: buttonCls
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
|
|
3
|
-
export
|
|
3
|
+
export type ButtonToken = FullToken<'Button'>;
|
|
4
4
|
export declare const genButtonStyle: GenerateStyle<ButtonToken>;
|
|
5
5
|
declare const _default: (prefixCls: string) => {
|
|
6
6
|
wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/calendar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/calendar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/callapse';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/callapse';
|
package/es/card/index.js
CHANGED
|
@@ -40,9 +40,8 @@ var Card = function Card(_ref) {
|
|
|
40
40
|
var prefixCls = getPrefixCls('card', customizePrefixCls);
|
|
41
41
|
var tabsPrefixCls = getPrefixCls('tabs', customizePrefixCls);
|
|
42
42
|
var _useStyle = useStyle(prefixCls, tabsPrefixCls),
|
|
43
|
-
wrapSSR = _useStyle.wrapSSR
|
|
44
|
-
|
|
45
|
-
var cardCls = classNames(_defineProperty({}, "".concat(prefixCls, "-no-divider"), !divided), className, hashId);
|
|
43
|
+
wrapSSR = _useStyle.wrapSSR;
|
|
44
|
+
var cardCls = classNames(_defineProperty({}, "".concat(prefixCls, "-no-divider"), !divided), className);
|
|
46
45
|
var ref = useRef();
|
|
47
46
|
var newTabList = tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) {
|
|
48
47
|
if (!isNullValue(item.tag)) {
|
package/es/card/style/index.d.ts
CHANGED
package/es/card/style/index.js
CHANGED
|
@@ -20,10 +20,10 @@ export var genCardStyle = function genCardStyle(token) {
|
|
|
20
20
|
padding: "0 ".concat(paddingLG, "px ").concat(padding, "px ").concat(paddingLG, "px")
|
|
21
21
|
})), _defineProperty(_ref, "".concat(componentCls, "-small").concat(componentCls, "-no-divider:not(").concat(componentCls, "-contain-tabs)"), _defineProperty({}, "".concat(componentCls, "-body"), {
|
|
22
22
|
padding: "0 ".concat(paddingSM, "px 12px ").concat(paddingSM, "px")
|
|
23
|
-
})), _defineProperty(_ref, "".concat(componentCls).concat(componentCls, "-contain-tabs"), _defineProperty({}, "".concat(componentCls, "-head"),
|
|
23
|
+
})), _defineProperty(_ref, "".concat(componentCls).concat(componentCls, "-contain-tabs"), _defineProperty({}, "".concat(componentCls, "-head"), genTagStyle(_objectSpread(_objectSpread({}, token), {}, {
|
|
24
24
|
componentCls: tabsComponentCls,
|
|
25
25
|
prefixCls: tabsPrefixCls
|
|
26
|
-
}))))
|
|
26
|
+
})))), _ref;
|
|
27
27
|
};
|
|
28
28
|
export default (function (prefixCls, tabsPrefixCls) {
|
|
29
29
|
var useStyle = genComponentStyleHook('Card', function (token) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/carousel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/carousel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/cascader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/cascader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/checkbox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/checkbox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/color-picker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/color-picker';
|
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ConfigProviderProps as AntConfigProviderProps, ThemeConfig as AntThemeConfig } from 'antd/es/config-provider';
|
|
2
|
+
import type { ConfigProviderProps as AntConfigProviderProps, ConfigConsumerProps as AntConfigConsumerProps, ThemeConfig as AntThemeConfig } from 'antd/es/config-provider';
|
|
3
|
+
import type { ComponentStyleConfig } from 'antd/es/config-provider/context';
|
|
4
|
+
import type { SpinIndicator } from 'antd/es/spin';
|
|
5
|
+
import type { NavigateFunction } from './navigate';
|
|
6
|
+
export * from './navigate';
|
|
3
7
|
export * from 'antd/es/config-provider';
|
|
4
8
|
export interface ThemeConfig extends AntThemeConfig {
|
|
5
9
|
isDark?: boolean;
|
|
6
10
|
}
|
|
11
|
+
export type SpinConfig = ComponentStyleConfig & {
|
|
12
|
+
indicator?: SpinIndicator;
|
|
13
|
+
};
|
|
14
|
+
export interface ConfigConsumerProps extends AntConfigConsumerProps {
|
|
15
|
+
spin?: SpinConfig;
|
|
16
|
+
}
|
|
7
17
|
export interface ConfigProviderProps extends AntConfigProviderProps {
|
|
8
18
|
theme?: ThemeConfig;
|
|
19
|
+
navigate?: NavigateFunction;
|
|
20
|
+
spin?: SpinConfig;
|
|
21
|
+
}
|
|
22
|
+
export interface ExtendedConfigConsumerProps {
|
|
23
|
+
navigate?: NavigateFunction;
|
|
9
24
|
}
|
|
10
25
|
declare const ConfigProvider: {
|
|
11
|
-
({ children, theme, ...restProps }: ConfigProviderProps): React.JSX.Element;
|
|
12
|
-
ConfigContext: React.Context<
|
|
26
|
+
({ children, theme, navigate, spin, ...restProps }: ConfigProviderProps): React.JSX.Element;
|
|
27
|
+
ConfigContext: React.Context<ConfigConsumerProps>;
|
|
28
|
+
ExtendedConfigContext: React.Context<ExtendedConfigConsumerProps>;
|
|
13
29
|
SizeContext: React.Context<import("antd/es/button").ButtonSize>;
|
|
14
30
|
config: ({ prefixCls, iconPrefixCls, theme, }: Pick<AntConfigProviderProps, "prefixCls" | "iconPrefixCls"> & {
|
|
15
31
|
theme?: AntThemeConfig | import("antd/es/config-provider/context").Theme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
-
var _excluded = ["children", "theme"];
|
|
2
|
+
var _excluded = ["children", "theme", "navigate", "spin"];
|
|
3
3
|
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); }
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
@@ -13,17 +13,25 @@ import { App, ConfigProvider as AntConfigProvider } from 'antd';
|
|
|
13
13
|
import StaticFunction from "../static-function";
|
|
14
14
|
import defaultTheme from "../theme";
|
|
15
15
|
import defaultThemeToken from "../theme/default";
|
|
16
|
+
export * from "./navigate";
|
|
17
|
+
export * from 'antd/es/config-provider';
|
|
18
|
+
var ExtendedConfigContext = /*#__PURE__*/React.createContext({
|
|
19
|
+
navigate: undefined
|
|
20
|
+
});
|
|
16
21
|
var defaultSeed = defaultTheme.defaultSeed,
|
|
17
22
|
components = defaultTheme.components;
|
|
18
|
-
|
|
23
|
+
|
|
19
24
|
// ConfigProvider 默认设置主题和内嵌 App,支持 message, notification 和 Modal 等静态方法消费 ConfigProvider 配置
|
|
20
25
|
// ref: https://ant.design/components/app-cn
|
|
21
26
|
var ConfigProvider = function ConfigProvider(_ref) {
|
|
22
27
|
var _theme$components;
|
|
23
28
|
var children = _ref.children,
|
|
24
29
|
theme = _ref.theme,
|
|
30
|
+
navigate = _ref.navigate,
|
|
31
|
+
spin = _ref.spin,
|
|
25
32
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
26
33
|
return /*#__PURE__*/React.createElement(AntConfigProvider, _extends({
|
|
34
|
+
spin: spin,
|
|
27
35
|
theme: _objectSpread(_objectSpread({}, theme), {}, {
|
|
28
36
|
// Only set seed token for dark theme
|
|
29
37
|
// Because defaultThemeToken is designed for light theme
|
|
@@ -32,9 +40,14 @@ var ConfigProvider = function ConfigProvider(_ref) {
|
|
|
32
40
|
InputNumber: _objectSpread(_objectSpread({}, components === null || components === void 0 ? void 0 : components.InputNumber), theme === null || theme === void 0 ? void 0 : (_theme$components = theme.components) === null || _theme$components === void 0 ? void 0 : _theme$components.InputNumber)
|
|
33
41
|
})
|
|
34
42
|
})
|
|
35
|
-
}, restProps), /*#__PURE__*/React.createElement(
|
|
43
|
+
}, restProps), /*#__PURE__*/React.createElement(ExtendedConfigContext.Provider, {
|
|
44
|
+
value: {
|
|
45
|
+
navigate: navigate
|
|
46
|
+
}
|
|
47
|
+
}, /*#__PURE__*/React.createElement(App, null, children, /*#__PURE__*/React.createElement(StaticFunction, null))));
|
|
36
48
|
};
|
|
37
49
|
ConfigProvider.ConfigContext = AntConfigProvider.ConfigContext;
|
|
50
|
+
ConfigProvider.ExtendedConfigContext = ExtendedConfigContext;
|
|
38
51
|
ConfigProvider.SizeContext = AntConfigProvider.SizeContext;
|
|
39
52
|
ConfigProvider.config = AntConfigProvider.config;
|
|
40
53
|
ConfigProvider.useConfig = AntConfigProvider.useConfig;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface Path {
|
|
2
|
+
/**
|
|
3
|
+
* A URL pathname, beginning with a /.
|
|
4
|
+
*/
|
|
5
|
+
pathname: string;
|
|
6
|
+
/**
|
|
7
|
+
* A URL search string, beginning with a ?.
|
|
8
|
+
*/
|
|
9
|
+
search: string;
|
|
10
|
+
/**
|
|
11
|
+
* Compatibale with history.push param for react-router-dom v5
|
|
12
|
+
*/
|
|
13
|
+
query: Record<string, string>;
|
|
14
|
+
/**
|
|
15
|
+
* A URL fragment identifier, beginning with a #.
|
|
16
|
+
*/
|
|
17
|
+
hash: string;
|
|
18
|
+
}
|
|
19
|
+
export type To = string | Partial<Path>;
|
|
20
|
+
export type RelativeRoutingType = 'route' | 'path';
|
|
21
|
+
export interface NavigateOptions {
|
|
22
|
+
replace?: boolean;
|
|
23
|
+
state?: any;
|
|
24
|
+
preventScrollReset?: boolean;
|
|
25
|
+
relative?: RelativeRoutingType;
|
|
26
|
+
}
|
|
27
|
+
export interface NavigateFunction {
|
|
28
|
+
(to: To, options?: NavigateOptions): void;
|
|
29
|
+
(delta: number): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/date-picker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/date-picker';
|
|
@@ -2,7 +2,7 @@ import type { DescriptionsProps as AntDescriptionsProps } from 'antd/es/descript
|
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export * from 'antd/es/descriptions';
|
|
5
|
-
export
|
|
5
|
+
export type DescriptionsProps = AntDescriptionsProps;
|
|
6
6
|
declare const Descriptions: {
|
|
7
7
|
({ children, bordered, prefixCls: customizePrefixCls, className, ...restProps }: DescriptionsProps): ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
8
8
|
displayName: string;
|
package/es/descriptions/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
1
|
var _excluded = ["children", "bordered", "prefixCls", "className"],
|
|
3
2
|
_excluded2 = ["children", "contentProps"],
|
|
4
3
|
_excluded3 = ["ellipsis"];
|
|
5
4
|
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); }
|
|
5
|
+
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); }
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
8
|
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; }
|
|
@@ -12,7 +12,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
12
12
|
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; }
|
|
13
13
|
import { Descriptions as AntDescriptions, Typography } from 'antd';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
|
-
import { isObject } from 'lodash';
|
|
16
15
|
import toArray from 'rc-util/lib/Children/toArray';
|
|
17
16
|
import React, { isValidElement, useContext } from 'react';
|
|
18
17
|
import ConfigProvider from "../config-provider";
|
|
@@ -30,9 +29,8 @@ var Descriptions = function Descriptions(_ref) {
|
|
|
30
29
|
var prefixCls = getPrefixCls('descriptions', customizePrefixCls);
|
|
31
30
|
var typographyPrefixCls = getPrefixCls('typography', customizePrefixCls);
|
|
32
31
|
var _useStyle = useStyle(prefixCls, typographyPrefixCls),
|
|
33
|
-
wrapSSR = _useStyle.wrapSSR
|
|
34
|
-
|
|
35
|
-
var descriptionsCls = classNames(className, hashId);
|
|
32
|
+
wrapSSR = _useStyle.wrapSSR;
|
|
33
|
+
var descriptionsCls = classNames(className);
|
|
36
34
|
|
|
37
35
|
// 仅无边框时定制 children
|
|
38
36
|
var newChildren = bordered ? children : toArray(children).map(function (node) {
|
|
@@ -55,10 +53,10 @@ var Descriptions = function Descriptions(_ref) {
|
|
|
55
53
|
return _objectSpread(_objectSpread({}, node), {}, {
|
|
56
54
|
props: _objectSpread(_objectSpread({}, restItemProps), {}, {
|
|
57
55
|
children: /*#__PURE__*/React.createElement(Typography.Text, _extends({}, restContentProps, {
|
|
58
|
-
ellipsis:
|
|
56
|
+
ellipsis: _typeof(ellipsis) === 'object' ? _objectSpread(_objectSpread({}, ellipsis), {}, {
|
|
59
57
|
tooltip:
|
|
60
58
|
// 如果目标元素已经被 Tooltip 包裹,则去掉默认的 Tooltip,避免有两个 Tooltip
|
|
61
|
-
itemChildrenType !== null && itemChildrenType !== void 0 && itemChildrenType.__ANT_TOOLTIP ? undefined : _objectSpread(_objectSpread({}, defaultEllipsis.tooltip),
|
|
59
|
+
itemChildrenType !== null && itemChildrenType !== void 0 && itemChildrenType.__ANT_TOOLTIP ? undefined : _objectSpread(_objectSpread({}, defaultEllipsis.tooltip), _typeof(ellipsis.tooltip) === 'object' && ! /*#__PURE__*/isValidElement(ellipsis.tooltip) ? ellipsis.tooltip : {
|
|
62
60
|
title: ellipsis.tooltip
|
|
63
61
|
})
|
|
64
62
|
}) : ellipsis
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
|
|
3
|
-
export
|
|
3
|
+
export type DescriptionsToken = FullToken<'Alert'> & {
|
|
4
4
|
typographyPrefixCls: string;
|
|
5
5
|
typographyComponentCls: string;
|
|
6
6
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/divider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/divider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/drawer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/drawer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/dropdown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/dropdown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/empty';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/empty';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/float-button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/float-button';
|
package/es/form/FormItem.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import type { FormItemProps as AntFormItemProps } from 'antd/es/form';
|
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import type { TooltipProps } from '../tooltip';
|
|
5
|
-
export
|
|
5
|
+
export type WrapperTooltipProps = Omit<TooltipProps, 'mouseFollow'> & {
|
|
6
6
|
icon?: React.ReactElement;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type LabelTooltipType = WrapperTooltipProps | React.ReactNode;
|
|
9
9
|
declare const FormItem: (<Values = any>(props: AntFormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
10
10
|
useStatus: () => {
|
|
11
11
|
status?: "" | "success" | "error" | "warning" | "validating";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/grid';
|
package/es/grid/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/grid';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/image';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/image';
|
package/es/index.d.ts
CHANGED
|
@@ -14,8 +14,9 @@ export { default as Tabs } from './tabs';
|
|
|
14
14
|
export { default as theme } from './theme';
|
|
15
15
|
export { default as Tooltip } from './tooltip';
|
|
16
16
|
export { default as Breadcrumb } from './breadcrumb';
|
|
17
|
+
export { default as Spin } from './spin';
|
|
17
18
|
declare const useToken: () => {
|
|
18
|
-
theme: import("@ant-design/cssinjs").Theme<import("antd/es/theme/
|
|
19
|
+
theme: import("@ant-design/cssinjs").Theme<import("antd/es/theme/interface/seeds").SeedToken, import("antd/es/theme/interface").MapToken>;
|
|
19
20
|
token: import("antd").GlobalToken;
|
|
20
21
|
hashId: string;
|
|
21
22
|
};
|
package/es/index.js
CHANGED
|
@@ -18,6 +18,7 @@ export { default as Tabs } from "./tabs";
|
|
|
18
18
|
export { default as theme } from "./theme";
|
|
19
19
|
export { default as Tooltip } from "./tooltip";
|
|
20
20
|
export { default as Breadcrumb } from "./breadcrumb";
|
|
21
|
+
export { default as Spin } from "./spin";
|
|
21
22
|
var useToken = theme.useToken;
|
|
22
23
|
|
|
23
24
|
// 直接导出 useToken,方便上层使用
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/input';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/input';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/input-number';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/input-number';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/layout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/layout';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/list';
|
package/es/list/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'antd/es/list';
|
package/es/locale/index.d.ts
CHANGED
package/es/locale/index.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AnimationConfig, AnimationItem } from 'lottie-web';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface LottieProps extends Omit<AnimationConfig, 'container'> {
|
|
4
|
+
path?: string;
|
|
5
|
+
animationData?: any;
|
|
6
|
+
mode?: 'default' | 'icon';
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
speed?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
}
|
|
12
|
+
export interface LottieRef {
|
|
13
|
+
animation: AnimationItem;
|
|
14
|
+
}
|
|
15
|
+
declare const Lottie: React.ForwardRefExoticComponent<LottieProps & React.RefAttributes<LottieRef>>;
|
|
16
|
+
export default Lottie;
|