@oceanbase/design 0.2.17 → 0.2.19

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.
Files changed (71) hide show
  1. package/dist/design.min.js +1 -1
  2. package/es/alert/index.js +4 -2
  3. package/es/badge/index.d.ts +2 -3
  4. package/es/badge/index.js +47 -16
  5. package/es/badge/style/index.js +15 -13
  6. package/es/button/index.js +8 -2
  7. package/es/card/Card.d.ts +1 -0
  8. package/es/card/Card.js +1 -0
  9. package/es/card/index.d.ts +1 -0
  10. package/es/card/index.js +15 -9
  11. package/es/collapse/index.d.ts +1 -0
  12. package/es/collapse/index.js +1 -0
  13. package/es/config-provider/SizeContext.d.ts +1 -0
  14. package/es/config-provider/SizeContext.js +1 -0
  15. package/es/config-provider/index.d.ts +4 -1
  16. package/es/config-provider/index.js +25 -18
  17. package/es/config-provider/navigate.d.ts +2 -2
  18. package/es/descriptions/Item.d.ts +1 -1
  19. package/es/descriptions/index.d.ts +2 -1
  20. package/es/descriptions/index.js +9 -6
  21. package/es/form/FormItem.js +5 -3
  22. package/es/index.d.ts +2 -0
  23. package/es/lottie/index.js +2 -1
  24. package/es/modal/Modal.js +8 -2
  25. package/es/modal/Progress.d.ts +1 -1
  26. package/es/modal/Progress.js +23 -10
  27. package/es/spin/assets/spin-gray.json +1031 -1
  28. package/es/spin/assets/spin.json +1031 -1
  29. package/es/spin/index.js +6 -4
  30. package/es/table/index.js +54 -32
  31. package/es/tabs/TabPane.d.ts +1 -1
  32. package/es/tabs/hooks/useLegacyItems.js +10 -6
  33. package/es/tabs/index.d.ts +1 -1
  34. package/es/tabs/index.js +12 -9
  35. package/es/tooltip/MouseTooltip.js +37 -29
  36. package/es/tooltip/index.js +21 -14
  37. package/lib/badge/index.d.ts +2 -3
  38. package/lib/badge/index.js +33 -17
  39. package/lib/badge/style/index.js +25 -22
  40. package/lib/card/Card.d.ts +1 -0
  41. package/lib/{statistic/interface.js → card/Card.js} +5 -5
  42. package/lib/card/index.d.ts +1 -0
  43. package/lib/card/index.js +2 -0
  44. package/lib/collapse/index.d.ts +1 -0
  45. package/lib/{callapse → collapse}/index.js +5 -5
  46. package/lib/config-provider/SizeContext.d.ts +1 -0
  47. package/lib/config-provider/SizeContext.js +23 -0
  48. package/lib/config-provider/index.d.ts +4 -1
  49. package/lib/config-provider/index.js +30 -24
  50. package/lib/config-provider/navigate.d.ts +2 -2
  51. package/lib/descriptions/Item.d.ts +1 -1
  52. package/lib/descriptions/index.d.ts +2 -1
  53. package/lib/index.d.ts +2 -0
  54. package/lib/modal/Progress.d.ts +1 -1
  55. package/lib/spin/assets/spin-gray.json +1031 -1
  56. package/lib/spin/assets/spin.json +1031 -1
  57. package/lib/tabs/TabPane.d.ts +1 -1
  58. package/lib/tabs/index.d.ts +1 -1
  59. package/lib/tooltip/index.js +32 -30
  60. package/lib/tooltip/style/index.js +10 -6
  61. package/package.json +6 -5
  62. package/es/badge/IconBadge.d.ts +0 -10
  63. package/es/badge/IconBadge.js +0 -37
  64. package/es/badge/style/waiting.png +0 -0
  65. package/es/callapse/index.d.ts +0 -1
  66. package/es/callapse/index.js +0 -1
  67. package/es/statistic/interface.js +0 -1
  68. package/lib/badge/IconBadge.d.ts +0 -10
  69. package/lib/badge/IconBadge.js +0 -53
  70. package/lib/badge/style/waiting.png +0 -0
  71. package/lib/callapse/index.d.ts +0 -1
package/es/alert/index.js CHANGED
@@ -1,6 +1,7 @@
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
2
  var _excluded = ["ghost", "colored", "prefixCls", "className"];
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); }
3
+ 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; }
4
+ 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 _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
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
7
  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); }
@@ -11,6 +12,7 @@ import classNames from 'classnames';
11
12
  import React, { useContext } from 'react';
12
13
  import ConfigProvider from "../config-provider";
13
14
  import useStyle from "./style";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
14
16
  export * from 'antd/es/alert';
15
17
  var Alert = function Alert(_ref) {
16
18
  var _classNames;
@@ -25,7 +27,7 @@ var Alert = function Alert(_ref) {
25
27
  var _useStyle = useStyle(prefixCls),
26
28
  wrapSSR = _useStyle.wrapSSR;
27
29
  var alertCls = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-ghost"), ghost), _defineProperty(_classNames, "".concat(prefixCls, "-colored"), colored), _classNames), className);
28
- return wrapSSR( /*#__PURE__*/React.createElement(AntAlert, _extends({
30
+ return wrapSSR( /*#__PURE__*/_jsx(AntAlert, _objectSpread({
29
31
  prefixCls: customizePrefixCls,
30
32
  className: alertCls
31
33
  }, restProps)));
@@ -1,12 +1,11 @@
1
- import type { BadgeProps as AntBadgeProps } from 'antd/es/badge';
2
1
  import React from 'react';
2
+ import type { BadgeProps as AntBadgeProps } from 'antd/es/badge';
3
3
  export * from 'antd/es/badge';
4
4
  export interface BadgeProps extends AntBadgeProps {
5
5
  icon?: boolean | React.ReactNode;
6
6
  }
7
7
  declare const Badge: {
8
- ({ prefixCls: customizePrefixCls, className, icon, ...restProps }: BadgeProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
8
+ ({ prefixCls: customizePrefixCls, className, status, text, icon, ...restProps }: BadgeProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
9
9
  displayName: string;
10
- Icon: ({ icon, status, text, className, ...restProps }: import("./IconBadge").IconBadgeProps) => React.JSX.Element;
11
10
  };
12
11
  export default Badge;
package/es/badge/index.js CHANGED
@@ -1,41 +1,72 @@
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 = ["prefixCls", "className", "icon"];
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); }
2
+ var _excluded = ["prefixCls", "className", "status", "text", "icon"];
3
+ 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; }
4
+ 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 _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
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
7
  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
8
  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; }
8
9
  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; }
10
+ import React, { useContext } from 'react';
9
11
  import { Badge as AntBadge } from 'antd';
12
+ import { CloseCircleFilled, CheckCircleFilled, Loading3QuartersOutlined, StopFilled, ClockCircleFilled } from '@oceanbase/icons';
10
13
  import classNames from 'classnames';
11
- import React, { useContext } from 'react';
12
14
  import ConfigProvider from "../config-provider";
13
- import IconBadge from "./IconBadge";
14
15
  import useStyle from "./style";
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ import { jsxs as _jsxs } from "react/jsx-runtime";
18
+ import { Fragment as _Fragment } from "react/jsx-runtime";
15
19
  export * from 'antd/es/badge';
16
20
  var Badge = function Badge(_ref) {
17
21
  var customizePrefixCls = _ref.prefixCls,
18
22
  className = _ref.className,
23
+ status = _ref.status,
24
+ text = _ref.text,
19
25
  icon = _ref.icon,
20
26
  restProps = _objectWithoutProperties(_ref, _excluded);
21
27
  var _useContext = useContext(ConfigProvider.ConfigContext),
22
28
  getPrefixCls = _useContext.getPrefixCls,
23
- badge = _useContext.badge;
29
+ iconPrefixCls = _useContext.iconPrefixCls;
24
30
  var prefixCls = getPrefixCls('badge', customizePrefixCls);
25
31
  var _useStyle = useStyle(prefixCls),
26
- wrapSSR = _useStyle.wrapSSR;
27
- var badgeCls = classNames(_defineProperty({}, "".concat(prefixCls), true), className);
28
- return wrapSSR( /*#__PURE__*/React.createElement(React.Fragment, null, icon ? /*#__PURE__*/React.createElement(IconBadge, _extends({
29
- prefixCls: customizePrefixCls,
30
- className: badgeCls,
31
- icon: icon
32
- }, restProps)) : /*#__PURE__*/React.createElement(AntBadge, _extends({
33
- prefixCls: customizePrefixCls,
34
- className: badgeCls
35
- }, restProps))));
32
+ wrapSSR = _useStyle.wrapSSR,
33
+ hashId = _useStyle.hashId;
34
+ var badgeCls = classNames(prefixCls, className);
35
+ var iconMap = {
36
+ default: /*#__PURE__*/_jsx(StopFilled, {}),
37
+ processing: /*#__PURE__*/_jsx(Loading3QuartersOutlined, {
38
+ style: {
39
+ display: 'inline-block'
40
+ },
41
+ className: "".concat(iconPrefixCls, "-spin")
42
+ }),
43
+ success: /*#__PURE__*/_jsx(CheckCircleFilled, {}),
44
+ error: /*#__PURE__*/_jsx(CloseCircleFilled, {}),
45
+ warning: /*#__PURE__*/_jsx(ClockCircleFilled, {})
46
+ };
47
+ return wrapSSR( /*#__PURE__*/_jsx(_Fragment, {
48
+ children: status && icon ? /*#__PURE__*/_jsxs("span", _objectSpread(_objectSpread({
49
+ className: classNames(badgeCls, "".concat(prefixCls, "-status"), hashId),
50
+ style: {
51
+ display: 'inline-block'
52
+ }
53
+ }, restProps), {}, {
54
+ children: [/*#__PURE__*/_jsx("span", {
55
+ className: classNames("".concat(prefixCls, "-status-icon"), "".concat(prefixCls, "-status-").concat(status)),
56
+ children: /*#__PURE__*/React.isValidElement(icon) ? icon : iconMap[status]
57
+ }), text && /*#__PURE__*/_jsx("span", {
58
+ className: "".concat(prefixCls, "-status-text"),
59
+ children: text
60
+ })]
61
+ })) : /*#__PURE__*/_jsx(AntBadge, _objectSpread({
62
+ prefixCls: customizePrefixCls,
63
+ className: badgeCls,
64
+ status: status,
65
+ text: text
66
+ }, restProps))
67
+ }));
36
68
  };
37
69
  if (process.env.NODE_ENV !== 'production') {
38
70
  Badge.displayName = AntBadge.displayName;
39
71
  }
40
- Badge.Icon = IconBadge;
41
72
  export default Badge;
@@ -1,33 +1,35 @@
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
- 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; }
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
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; }
5
3
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
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); }
7
5
  import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
8
6
  export var genBadgeStyle = function genBadgeStyle(token) {
9
- var _$concat;
7
+ var _$concat, _$concat$concat;
10
8
  var componentCls = token.componentCls;
11
- return _defineProperty({}, "".concat(componentCls), (_$concat = {}, _defineProperty(_$concat, "".concat(componentCls, "-status-dot"), {
9
+ return _defineProperty({}, "".concat(componentCls).concat(componentCls, "-status"), (_$concat$concat = {}, _defineProperty(_$concat$concat, "".concat(componentCls, "-status-dot"), {
12
10
  width: 8,
13
11
  height: 8
14
- }), _defineProperty(_$concat, "".concat(componentCls, "-status-icon"), {
12
+ }), _defineProperty(_$concat$concat, "".concat(componentCls, "-status-icon"), (_$concat = {
13
+ fontSize: 12,
14
+ // remove dot style
15
+ backgroundColor: 'transparent'
16
+ }, _defineProperty(_$concat, '&::after', {
17
+ display: 'none'
18
+ }), _defineProperty(_$concat, "&".concat(componentCls, "-status-success"), {
15
19
  color: token.colorSuccess
16
- }), _defineProperty(_$concat, "".concat(componentCls, "-status-success"), {
17
- color: token.colorSuccess
18
- }), _defineProperty(_$concat, "".concat(componentCls, "-status-processing"), {
20
+ }), _defineProperty(_$concat, "&".concat(componentCls, "-status-processing"), {
19
21
  color: token.colorPrimary
20
- }), _defineProperty(_$concat, "".concat(componentCls, "-status-default"), {
22
+ }), _defineProperty(_$concat, "&".concat(componentCls, "-status-default"), {
21
23
  color: token.colorTextPlaceholder
22
- }), _defineProperty(_$concat, "".concat(componentCls, "-status-error"), {
24
+ }), _defineProperty(_$concat, "&".concat(componentCls, "-status-error"), {
23
25
  color: token.colorError
24
- }), _defineProperty(_$concat, "".concat(componentCls, "-status-warning"), {
26
+ }), _defineProperty(_$concat, "&".concat(componentCls, "-status-warning"), {
25
27
  color: token.colorWarning
26
- }), _$concat));
28
+ }), _$concat)), _$concat$concat));
27
29
  };
28
30
  export default (function (prefixCls) {
29
31
  var useStyle = genComponentStyleHook('Badge', function (token) {
30
- return [genBadgeStyle(_objectSpread({}, token))];
32
+ return [genBadgeStyle(token)];
31
33
  });
32
34
  return useStyle(prefixCls);
33
35
  });
@@ -1,5 +1,10 @@
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
  var _excluded = ["prefixCls", "className"];
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 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; }
4
+ 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; }
5
+ 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; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ 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
8
  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
9
  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
10
  import { Button as AntButton } from 'antd';
@@ -7,6 +12,7 @@ import classNames from 'classnames';
7
12
  import React, { useContext } from 'react';
8
13
  import ConfigProvider from "../config-provider";
9
14
  import useStyle from "./style";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
10
16
  export * from 'antd/es/button';
11
17
  var Button = function Button(_ref) {
12
18
  var customizePrefixCls = _ref.prefixCls,
@@ -18,7 +24,7 @@ var Button = function Button(_ref) {
18
24
  var _useStyle = useStyle(prefixCls),
19
25
  wrapSSR = _useStyle.wrapSSR;
20
26
  var buttonCls = classNames(className);
21
- return wrapSSR( /*#__PURE__*/React.createElement(AntButton, _extends({
27
+ return wrapSSR( /*#__PURE__*/_jsx(AntButton, _objectSpread({
22
28
  prefixCls: customizePrefixCls,
23
29
  className: buttonCls
24
30
  }, restProps)));
@@ -0,0 +1 @@
1
+ export * from 'antd/es/card/Card';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/card/Card';
@@ -1,5 +1,6 @@
1
1
  import type { CardProps as AntCardProps, CardTabListType as AntCardTabListType } from 'antd/es/card';
2
2
  import React from 'react';
3
+ export * from 'antd/es/card/Card';
3
4
  export * from 'antd/es/card';
4
5
  export interface CardTabListType extends AntCardTabListType {
5
6
  tag?: React.ReactNode;
package/es/card/index.js CHANGED
@@ -1,6 +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
2
  var _excluded = ["children", "divided", "tabList", "activeTabKey", "defaultActiveTabKey", "onTabChange", "tabProps", "prefixCls", "className"];
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
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
5
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -21,6 +20,9 @@ import React, { useContext, useRef, useState } from 'react';
21
20
  import ConfigProvider from "../config-provider";
22
21
  import useInkBar from "../tabs/hooks/useInkBar";
23
22
  import useStyle from "./style";
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { jsxs as _jsxs } from "react/jsx-runtime";
25
+ export * from 'antd/es/card/Card';
24
26
  export * from 'antd/es/card';
25
27
  var Card = function Card(_ref) {
26
28
  var _newTabList$;
@@ -46,12 +48,14 @@ var Card = function Card(_ref) {
46
48
  var newTabList = tabList === null || tabList === void 0 ? void 0 : tabList.map(function (item) {
47
49
  if (!isNullValue(item.tag)) {
48
50
  return _objectSpread(_objectSpread({}, item), {}, {
49
- tab: /*#__PURE__*/React.createElement(Space, {
50
- size: 4
51
- }, item.tab, /*#__PURE__*/React.createElement(Tag, {
52
- bordered: false,
53
- className: "".concat(tabsPrefixCls, "-tab-tag")
54
- }, item.tag))
51
+ tab: /*#__PURE__*/_jsxs(Space, {
52
+ size: 4,
53
+ children: [item.tab, /*#__PURE__*/_jsx(Tag, {
54
+ bordered: false,
55
+ className: "".concat(tabsPrefixCls, "-tab-tag"),
56
+ children: item.tag
57
+ })]
58
+ })
55
59
  });
56
60
  }
57
61
  return item;
@@ -68,7 +72,7 @@ var Card = function Card(_ref) {
68
72
  tabPosition: tabProps === null || tabProps === void 0 ? void 0 : tabProps.tabPosition,
69
73
  containerRef: ref
70
74
  });
71
- return wrapSSR( /*#__PURE__*/React.createElement(AntCard, _extends({
75
+ return wrapSSR( /*#__PURE__*/_jsx(AntCard, _objectSpread(_objectSpread({
72
76
  ref: ref,
73
77
  tabList: newTabList,
74
78
  defaultActiveTabKey: defaultActiveTabKey,
@@ -80,7 +84,9 @@ var Card = function Card(_ref) {
80
84
  tabProps: tabProps,
81
85
  prefixCls: customizePrefixCls,
82
86
  className: cardCls
83
- }, restProps), children));
87
+ }, restProps), {}, {
88
+ children: children
89
+ })));
84
90
  };
85
91
  Card.Grid = AntCard.Grid;
86
92
  Card.Meta = AntCard.Meta;
@@ -0,0 +1 @@
1
+ export * from 'antd/es/collapse';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/collapse';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/config-provider/SizeContext';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/config-provider/SizeContext';
@@ -4,6 +4,9 @@ import type { ComponentStyleConfig } from 'antd/es/config-provider/context';
4
4
  import type { SpinIndicator } from 'antd/es/spin';
5
5
  import type { NavigateFunction } from './navigate';
6
6
  export * from './navigate';
7
+ export * from 'antd/es/config-provider/context';
8
+ export * from 'antd/es/config-provider/SizeContext';
9
+ export * from 'antd/es/config-provider/DisabledContext';
7
10
  export * from 'antd/es/config-provider';
8
11
  export interface ThemeConfig extends AntThemeConfig {
9
12
  isDark?: boolean;
@@ -23,7 +26,7 @@ export interface ExtendedConfigConsumerProps {
23
26
  navigate?: NavigateFunction;
24
27
  }
25
28
  declare const ConfigProvider: {
26
- ({ children, theme, navigate, spin, ...restProps }: ConfigProviderProps): React.JSX.Element;
29
+ ({ children, theme, navigate, spin, ...restProps }: ConfigProviderProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
27
30
  ConfigContext: React.Context<ConfigConsumerProps>;
28
31
  ExtendedConfigContext: React.Context<ExtendedConfigConsumerProps>;
29
32
  config: ({ prefixCls, iconPrefixCls, theme, }: Pick<AntConfigProviderProps, "prefixCls" | "iconPrefixCls"> & {
@@ -1,6 +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
2
  var _excluded = ["children", "theme", "navigate", "spin"];
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
3
  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
4
  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; }
6
5
  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; }
@@ -10,47 +9,55 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
10
9
  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; }
11
10
  import React from 'react';
12
11
  import { App, ConfigProvider as AntConfigProvider } from 'antd';
12
+ import { merge } from 'lodash';
13
13
  import StaticFunction from "../static-function";
14
14
  import defaultTheme from "../theme";
15
15
  import defaultThemeToken from "../theme/default";
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
18
  export * from "./navigate";
19
+ export * from 'antd/es/config-provider/context';
20
+ export * from 'antd/es/config-provider/SizeContext';
21
+ export * from 'antd/es/config-provider/DisabledContext';
17
22
  export * from 'antd/es/config-provider';
18
23
  var ExtendedConfigContext = /*#__PURE__*/React.createContext({
19
24
  navigate: undefined
20
25
  });
21
26
  var defaultSeed = defaultTheme.defaultSeed,
22
27
  components = defaultTheme.components;
23
-
24
- // ConfigProvider 默认设置主题和内嵌 App,支持 message, notification 和 Modal 等静态方法消费 ConfigProvider 配置
25
- // ref: https://ant.design/components/app-cn
26
28
  var ConfigProvider = function ConfigProvider(_ref) {
27
- var _theme$components;
28
29
  var children = _ref.children,
29
30
  theme = _ref.theme,
30
31
  navigate = _ref.navigate,
31
32
  spin = _ref.spin,
32
33
  restProps = _objectWithoutProperties(_ref, _excluded);
33
34
  // inherit from parent ConfigProvider
34
- var parentContext = React.useContext(ExtendedConfigContext);
35
- return /*#__PURE__*/React.createElement(AntConfigProvider, _extends({
36
- spin: spin,
37
- theme: _objectSpread(_objectSpread({}, theme), {}, {
35
+ var parentContext = React.useContext(AntConfigProvider.ConfigContext);
36
+ var parentExtendedContext = React.useContext(ExtendedConfigContext);
37
+ return /*#__PURE__*/_jsx(AntConfigProvider, _objectSpread(_objectSpread({
38
+ spin: merge(parentContext.spin, spin),
39
+ theme: merge({
38
40
  // Only set seed token for dark theme
39
41
  // Because defaultThemeToken is designed for light theme
40
- token: theme !== null && theme !== void 0 && theme.isDark ? _objectSpread(_objectSpread({}, defaultSeed), theme === null || theme === void 0 ? void 0 : theme.token) : _objectSpread(_objectSpread(_objectSpread({}, defaultSeed), defaultThemeToken), theme === null || theme === void 0 ? void 0 : theme.token),
41
- components: _objectSpread(_objectSpread(_objectSpread({}, components), theme === null || theme === void 0 ? void 0 : theme.components), {}, {
42
- 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)
42
+ token: theme !== null && theme !== void 0 && theme.isDark ? _objectSpread({}, defaultSeed) : _objectSpread(_objectSpread({}, defaultSeed), defaultThemeToken),
43
+ components: _objectSpread(_objectSpread({}, components), {}, {
44
+ InputNumber: _objectSpread({}, components === null || components === void 0 ? void 0 : components.InputNumber)
45
+ })
46
+ }, parentContext.theme, theme)
47
+ }, restProps), {}, {
48
+ children: /*#__PURE__*/_jsx(ExtendedConfigContext.Provider, {
49
+ value: {
50
+ navigate: navigate === undefined ? parentExtendedContext.navigate : navigate
51
+ },
52
+ children: /*#__PURE__*/_jsxs(App, {
53
+ children: [children, /*#__PURE__*/_jsx(StaticFunction, {})]
43
54
  })
44
55
  })
45
- }, restProps), /*#__PURE__*/React.createElement(ExtendedConfigContext.Provider, {
46
- value: {
47
- navigate: navigate === undefined ? parentContext.navigate : navigate
48
- }
49
- }, /*#__PURE__*/React.createElement(App, null, children, /*#__PURE__*/React.createElement(StaticFunction, null))));
56
+ }));
50
57
  };
51
58
  ConfigProvider.ConfigContext = AntConfigProvider.ConfigContext;
52
59
  ConfigProvider.ExtendedConfigContext = ExtendedConfigContext;
53
- // SizeContext”已弃用。ts(6385)
60
+ // SizeContext is deprecated
54
61
  // ConfigProvider.SizeContext = AntConfigProvider.SizeContext;
55
62
  ConfigProvider.config = AntConfigProvider.config;
56
63
  ConfigProvider.useConfig = AntConfigProvider.useConfig;
@@ -16,7 +16,7 @@ export interface Path {
16
16
  */
17
17
  hash: string;
18
18
  }
19
- export type To = string | Partial<Path>;
19
+ export type To = string | Partial<Path> | any;
20
20
  export type RelativeRoutingType = 'route' | 'path';
21
21
  export interface NavigateOptions {
22
22
  replace?: boolean;
@@ -26,5 +26,5 @@ export interface NavigateOptions {
26
26
  }
27
27
  export interface NavigateFunction {
28
28
  (to: To, options?: NavigateOptions): void;
29
- (delta: number): void;
29
+ (delta: number | any): void;
30
30
  }
@@ -4,5 +4,5 @@ import type { TextProps } from 'antd/es/typography/Text';
4
4
  export interface DescriptionsItemProps extends AntDescriptionsItemProps {
5
5
  contentProps?: TextProps;
6
6
  }
7
- declare const _default: import("react").FC<AntDescriptionsItemProps>;
7
+ declare const _default: import("react").FC<DescriptionsItemProps>;
8
8
  export default _default;
@@ -1,11 +1,12 @@
1
1
  import type { DescriptionsProps as AntDescriptionsProps } from 'antd/es/descriptions';
2
2
  import type { ReactElement } from 'react';
3
3
  import React from 'react';
4
+ import type { DescriptionsItemProps } from './Item';
4
5
  export * from 'antd/es/descriptions';
5
6
  export type DescriptionsProps = AntDescriptionsProps;
6
7
  declare const Descriptions: {
7
8
  ({ children, bordered, prefixCls: customizePrefixCls, className, ...restProps }: DescriptionsProps): ReactElement<any, string | React.JSXElementConstructor<any>>;
8
9
  displayName: string;
9
- Item: React.FC<import("antd/es/descriptions/Item").DescriptionsItemProps>;
10
+ Item: React.FC<DescriptionsItemProps>;
10
11
  };
11
12
  export default Descriptions;
@@ -1,7 +1,6 @@
1
1
  var _excluded = ["children", "bordered", "prefixCls", "className"],
2
2
  _excluded2 = ["children", "contentProps"],
3
3
  _excluded3 = ["ellipsis"];
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
4
  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
5
  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
6
  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; }
@@ -17,6 +16,7 @@ import React, { isValidElement, useContext } from 'react';
17
16
  import ConfigProvider from "../config-provider";
18
17
  import DescriptionsItem from "./Item";
19
18
  import useStyle from "./style";
19
+ import { jsx as _jsx } from "react/jsx-runtime";
20
20
  export * from 'antd/es/descriptions';
21
21
  var Descriptions = function Descriptions(_ref) {
22
22
  var children = _ref.children,
@@ -52,15 +52,16 @@ var Descriptions = function Descriptions(_ref) {
52
52
  restContentProps = _objectWithoutProperties(_ref2, _excluded3);
53
53
  return _objectSpread(_objectSpread({}, node), {}, {
54
54
  props: _objectSpread(_objectSpread({}, restItemProps), {}, {
55
- children: /*#__PURE__*/React.createElement(Typography.Text, _extends({}, restContentProps, {
55
+ children: /*#__PURE__*/_jsx(Typography.Text, _objectSpread(_objectSpread({}, restContentProps), {}, {
56
56
  ellipsis: _typeof(ellipsis) === 'object' ? _objectSpread(_objectSpread({}, ellipsis), {}, {
57
57
  tooltip:
58
58
  // 如果目标元素已经被 Tooltip 包裹,则去掉默认的 Tooltip,避免有两个 Tooltip
59
59
  itemChildrenType !== null && itemChildrenType !== void 0 && itemChildrenType.__ANT_TOOLTIP ? undefined : _objectSpread(_objectSpread({}, defaultEllipsis.tooltip), _typeof(ellipsis.tooltip) === 'object' && ! /*#__PURE__*/isValidElement(ellipsis.tooltip) ? ellipsis.tooltip : {
60
60
  title: ellipsis.tooltip
61
61
  })
62
- }) : ellipsis
63
- }), itemChildren)
62
+ }) : ellipsis,
63
+ children: itemChildren
64
+ }))
64
65
  })
65
66
  });
66
67
  }
@@ -68,11 +69,13 @@ var Descriptions = function Descriptions(_ref) {
68
69
  }).map(function (node) {
69
70
  return node;
70
71
  });
71
- return wrapSSR( /*#__PURE__*/React.createElement(AntDescriptions, _extends({
72
+ return wrapSSR( /*#__PURE__*/_jsx(AntDescriptions, _objectSpread(_objectSpread({
72
73
  bordered: bordered,
73
74
  prefixCls: customizePrefixCls,
74
75
  className: descriptionsCls
75
- }, restProps), newChildren));
76
+ }, restProps), {}, {
77
+ children: newChildren
78
+ })));
76
79
  };
77
80
  if (process.env.NODE_ENV !== 'production') {
78
81
  Descriptions.displayName = AntDescriptions.displayName;
@@ -1,6 +1,5 @@
1
1
  var _excluded = ["children", "tooltip"],
2
2
  _excluded2 = ["icon", "type", "overlayInnerStyle"];
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
3
  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
4
  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; }
6
5
  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,6 +11,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
12
11
  import { Form as AntForm } from 'antd';
13
12
  import React from 'react';
14
13
  import { getTooltipTypeList } from "../tooltip";
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
15
  var AntFormItem = AntForm.Item;
16
16
  var Item = function Item(_ref) {
17
17
  var children = _ref.children,
@@ -35,9 +35,11 @@ var Item = function Item(_ref) {
35
35
  }, overlayInnerStyle)
36
36
  }, restTooltipProps);
37
37
  }
38
- return /*#__PURE__*/React.createElement(AntFormItem, _extends({
38
+ return /*#__PURE__*/_jsx(AntFormItem, _objectSpread(_objectSpread({
39
39
  tooltip: tooltip
40
- }, restProps), children);
40
+ }, restProps), {}, {
41
+ children: children
42
+ }));
41
43
  };
42
44
  var FormItem = Item;
43
45
  FormItem.useStatus = AntFormItem.useStatus;
package/es/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export { default as Modal } from './modal';
11
11
  export { message, notification, token } from './static-function';
12
12
  export { default as Table } from './table';
13
13
  export { default as Tabs } from './tabs';
14
+ export type { TabsProps } from './tabs';
14
15
  export { default as theme } from './theme';
15
16
  export { default as Tooltip } from './tooltip';
16
17
  export { default as Breadcrumb } from './breadcrumb';
@@ -22,3 +23,4 @@ declare const useToken: () => {
22
23
  hashId: string;
23
24
  };
24
25
  export { useToken };
26
+ export type { PresetStatusColorType } from 'antd/es/_util/colors';
@@ -17,6 +17,7 @@ import lottie from 'lottie-web';
17
17
  import React, { useState, useEffect, useRef, useImperativeHandle } from 'react';
18
18
  import { useUpdateEffect } from 'ahooks';
19
19
  import classNames from 'classnames';
20
+ import { jsx as _jsx } from "react/jsx-runtime";
20
21
  var Lottie = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
21
22
  var _ref$mode = _ref.mode,
22
23
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
@@ -54,7 +55,7 @@ var Lottie = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
54
55
  animation: animation
55
56
  };
56
57
  });
57
- return /*#__PURE__*/React.createElement("div", {
58
+ return /*#__PURE__*/_jsx("div", {
58
59
  ref: containerRef,
59
60
  className: classNames(className, _defineProperty({}, 'anticon', mode === 'icon')),
60
61
  style: _objectSpread({
package/es/modal/Modal.js CHANGED
@@ -1,5 +1,10 @@
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
  var _excluded = ["prefixCls", "className"];
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 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; }
4
+ 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; }
5
+ 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; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ 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
8
  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
9
  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
10
  import { Modal as AntModal } from 'antd';
@@ -8,6 +13,7 @@ import React, { useContext } from 'react';
8
13
  import ConfigProvider from "../config-provider";
9
14
  import { modal } from "../static-function";
10
15
  import useStyle from "./style";
16
+ import { jsx as _jsx } from "react/jsx-runtime";
11
17
  var Modal = function Modal(_ref) {
12
18
  var customizePrefixCls = _ref.prefixCls,
13
19
  className = _ref.className,
@@ -18,7 +24,7 @@ var Modal = function Modal(_ref) {
18
24
  var _useStyle = useStyle(prefixCls),
19
25
  wrapSSR = _useStyle.wrapSSR;
20
26
  var modalCls = classNames(className);
21
- return wrapSSR( /*#__PURE__*/React.createElement(AntModal, _extends({
27
+ return wrapSSR( /*#__PURE__*/_jsx(AntModal, _objectSpread({
22
28
  prefixCls: customizePrefixCls,
23
29
  className: modalCls
24
30
  }, restProps)));
@@ -6,5 +6,5 @@ export interface ModalProgressProps extends ModalProps {
6
6
  progress?: ProgressProps;
7
7
  description?: React.ReactNode;
8
8
  }
9
- declare const Progress: ({ prefixCls: customizePrefixCls, className, width, maskClosable, loading, progress, description, footer, ...restProps }: ModalProgressProps) => React.JSX.Element;
9
+ declare const Progress: ({ prefixCls: customizePrefixCls, className, width, maskClosable, loading, progress, description, footer, ...restProps }: ModalProgressProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
10
10
  export default Progress;