@oceanbase/design 0.2.1 → 0.2.2

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 (164) hide show
  1. package/dist/design.min.js +1 -1
  2. package/es/{Alert → alert}/index.d.ts +1 -0
  3. package/es/{Alert → alert}/index.js +3 -1
  4. package/es/{Button → button}/index.d.ts +1 -0
  5. package/es/{Button → button}/index.js +3 -1
  6. package/{lib/Card → es/card}/index.d.ts +1 -0
  7. package/es/{Card → card}/index.js +5 -3
  8. package/es/{Card → card}/style/index.js +1 -1
  9. package/es/color-picker/interface.d.ts +1 -0
  10. package/es/color-picker/interface.js +1 -0
  11. package/{lib/ConfigProvider → es/config-provider}/index.d.ts +1 -1
  12. package/es/{ConfigProvider → config-provider}/index.js +2 -2
  13. package/{lib/Descriptions → es/descriptions}/index.d.ts +1 -0
  14. package/es/{Descriptions → descriptions}/index.js +3 -1
  15. package/es/float-button/interface.d.ts +1 -0
  16. package/es/float-button/interface.js +1 -0
  17. package/{lib/Form → es/form}/FormItem.d.ts +1 -1
  18. package/es/{Form → form}/FormItem.js +1 -1
  19. package/es/{Form → form}/index.d.ts +1 -0
  20. package/es/{Form → form}/index.js +1 -0
  21. package/es/form/interface.d.ts +1 -0
  22. package/es/form/interface.js +1 -0
  23. package/es/index.d.ts +11 -11
  24. package/es/index.js +11 -14
  25. package/es/locale/index.d.ts +1 -1
  26. package/es/message/interface.d.ts +1 -0
  27. package/es/message/interface.js +1 -0
  28. package/{lib/Modal → es/modal}/index.d.ts +1 -0
  29. package/es/{Modal → modal}/index.js +4 -2
  30. package/es/modal/interface.d.ts +1 -0
  31. package/es/modal/interface.js +1 -0
  32. package/es/notification/interface.d.ts +1 -0
  33. package/es/notification/interface.js +1 -0
  34. package/es/qrcode/interface.d.ts +1 -0
  35. package/es/qrcode/interface.js +1 -0
  36. package/es/radio/interface.d.ts +1 -0
  37. package/es/radio/interface.js +1 -0
  38. package/es/statistic/interface.d.ts +1 -0
  39. package/es/statistic/interface.js +1 -0
  40. package/es/{Table → table}/index.d.ts +11 -0
  41. package/es/{Table → table}/index.js +11 -1
  42. package/es/table/interface.d.ts +1 -0
  43. package/es/table/interface.js +1 -0
  44. package/{lib/Tabs → es/tabs}/index.d.ts +1 -0
  45. package/es/{Tabs → tabs}/index.js +4 -2
  46. package/es/theme/index.d.ts +1 -0
  47. package/es/theme/index.js +1 -0
  48. package/es/theme/interface.d.ts +1 -0
  49. package/es/theme/interface.js +1 -0
  50. package/es/{Tooltip → tooltip}/MouseTooltip.js +1 -1
  51. package/es/{Tooltip → tooltip}/index.d.ts +1 -0
  52. package/es/{Tooltip → tooltip}/index.js +2 -1
  53. package/es/tour/interface.d.ts +1 -0
  54. package/es/tour/interface.js +1 -0
  55. package/es/transfer/interface.d.ts +1 -0
  56. package/es/transfer/interface.js +1 -0
  57. package/es/upload/interface.d.ts +1 -0
  58. package/es/upload/interface.js +1 -0
  59. package/lib/{Alert → alert}/index.d.ts +1 -0
  60. package/lib/{Alert → alert}/index.js +14 -7
  61. package/lib/{Alert → alert}/style/index.js +1 -1
  62. package/lib/{Button → button}/index.d.ts +1 -0
  63. package/lib/{Button → button}/index.js +14 -7
  64. package/lib/{Button → button}/style/index.js +1 -1
  65. package/{es/Card → lib/card}/index.d.ts +1 -0
  66. package/lib/{Card → card}/index.js +15 -8
  67. package/lib/{Card → card}/style/index.js +2 -2
  68. package/lib/color-picker/interface.d.ts +1 -0
  69. package/lib/color-picker/interface.js +23 -0
  70. package/{es/ConfigProvider → lib/config-provider}/index.d.ts +1 -1
  71. package/lib/{ConfigProvider → config-provider}/index.js +11 -11
  72. package/lib/{Descriptions → descriptions}/Item.js +1 -1
  73. package/{es/Descriptions → lib/descriptions}/index.d.ts +1 -0
  74. package/lib/{Descriptions → descriptions}/index.js +14 -7
  75. package/lib/{Descriptions → descriptions}/style/index.js +1 -1
  76. package/lib/float-button/interface.d.ts +1 -0
  77. package/lib/float-button/interface.js +23 -0
  78. package/{es/Form → lib/form}/FormItem.d.ts +1 -1
  79. package/lib/{Form → form}/FormItem.js +3 -3
  80. package/lib/{Form → form}/index.d.ts +1 -0
  81. package/lib/{Form → form}/index.js +12 -6
  82. package/lib/form/interface.d.ts +1 -0
  83. package/lib/form/interface.js +23 -0
  84. package/lib/index.d.ts +11 -11
  85. package/lib/index.js +24 -24
  86. package/lib/locale/index.d.ts +1 -1
  87. package/lib/message/interface.d.ts +1 -0
  88. package/lib/message/interface.js +23 -0
  89. package/{es/Modal → lib/modal}/index.d.ts +1 -0
  90. package/lib/{Modal → modal}/index.js +20 -13
  91. package/lib/modal/interface.d.ts +1 -0
  92. package/lib/modal/interface.js +23 -0
  93. package/lib/{Modal → modal}/style/index.js +1 -1
  94. package/lib/notification/interface.d.ts +1 -0
  95. package/lib/notification/interface.js +23 -0
  96. package/lib/qrcode/interface.d.ts +1 -0
  97. package/lib/qrcode/interface.js +23 -0
  98. package/lib/radio/interface.d.ts +1 -0
  99. package/lib/radio/interface.js +23 -0
  100. package/lib/{StaticFunction → static-function}/index.js +6 -6
  101. package/lib/statistic/interface.d.ts +1 -0
  102. package/lib/statistic/interface.js +23 -0
  103. package/lib/{Table → table}/index.d.ts +11 -0
  104. package/lib/{Table → table}/index.js +22 -7
  105. package/lib/table/interface.d.ts +1 -0
  106. package/lib/table/interface.js +23 -0
  107. package/lib/{Table → table}/style/index.js +1 -1
  108. package/lib/{Tabs → tabs}/TabPane.js +1 -1
  109. package/lib/{Tabs → tabs}/hooks/useInkBar.js +1 -1
  110. package/lib/{Tabs → tabs}/hooks/useLegacyItems.js +1 -1
  111. package/{es/Tabs → lib/tabs}/index.d.ts +1 -0
  112. package/lib/{Tabs → tabs}/index.js +14 -7
  113. package/lib/{Tabs → tabs}/style/index.js +1 -1
  114. package/lib/theme/index.d.ts +1 -0
  115. package/lib/theme/index.js +6 -0
  116. package/lib/theme/interface.d.ts +1 -0
  117. package/lib/theme/interface.js +23 -0
  118. package/lib/{Tooltip → tooltip}/MouseTooltip.js +6 -6
  119. package/lib/{Tooltip → tooltip}/index.d.ts +1 -0
  120. package/lib/{Tooltip → tooltip}/index.js +20 -17
  121. package/lib/tour/interface.d.ts +1 -0
  122. package/lib/tour/interface.js +23 -0
  123. package/lib/transfer/interface.d.ts +1 -0
  124. package/lib/transfer/interface.js +23 -0
  125. package/lib/upload/interface.d.ts +1 -0
  126. package/lib/upload/interface.js +23 -0
  127. package/package.json +5 -4
  128. package/es/Alert/style/index.d.ts +0 -8
  129. package/es/Button/style/index.d.ts +0 -8
  130. package/es/Descriptions/Item.d.ts +0 -8
  131. package/es/Descriptions/style/index.d.ts +0 -11
  132. package/es/Modal/style/index.d.ts +0 -8
  133. package/es/Table/style/index.d.ts +0 -8
  134. package/es/Tabs/TabPane.d.ts +0 -7
  135. package/es/Tabs/hooks/useInkBar.d.ts +0 -12
  136. package/es/Tabs/style/index.d.ts +0 -8
  137. package/lib/Alert/style/index.d.ts +0 -8
  138. package/lib/Button/style/index.d.ts +0 -8
  139. package/lib/Descriptions/Item.d.ts +0 -8
  140. package/lib/Descriptions/style/index.d.ts +0 -11
  141. package/lib/Modal/style/index.d.ts +0 -8
  142. package/lib/Table/style/index.d.ts +0 -8
  143. package/lib/Tabs/TabPane.d.ts +0 -7
  144. package/lib/Tabs/hooks/useInkBar.d.ts +0 -12
  145. package/lib/Tabs/style/index.d.ts +0 -8
  146. /package/es/{Alert → alert}/style/index.js +0 -0
  147. /package/es/{Button → button}/style/index.js +0 -0
  148. /package/es/{Card → card}/style/index.d.ts +0 -0
  149. /package/es/{Descriptions → descriptions}/Item.js +0 -0
  150. /package/es/{Descriptions → descriptions}/style/index.js +0 -0
  151. /package/es/{Modal → modal}/style/index.js +0 -0
  152. /package/es/{StaticFunction → static-function}/index.d.ts +0 -0
  153. /package/es/{StaticFunction → static-function}/index.js +0 -0
  154. /package/es/{Table → table}/style/index.js +0 -0
  155. /package/es/{Tabs → tabs}/TabPane.js +0 -0
  156. /package/es/{Tabs → tabs}/hooks/useInkBar.js +0 -0
  157. /package/es/{Tabs → tabs}/hooks/useLegacyItems.d.ts +0 -0
  158. /package/es/{Tabs → tabs}/hooks/useLegacyItems.js +0 -0
  159. /package/es/{Tabs → tabs}/style/index.js +0 -0
  160. /package/es/{Tooltip → tooltip}/MouseTooltip.d.ts +0 -0
  161. /package/lib/{Card → card}/style/index.d.ts +0 -0
  162. /package/lib/{StaticFunction → static-function}/index.d.ts +0 -0
  163. /package/lib/{Tabs → tabs}/hooks/useLegacyItems.d.ts +0 -0
  164. /package/lib/{Tooltip → tooltip}/MouseTooltip.d.ts +0 -0
@@ -1,4 +1,5 @@
1
1
  import type { AlertProps as AntAlertProps } from 'antd/es/alert';
2
+ export * from 'antd/es/alert';
2
3
  export interface AlertProps extends AntAlertProps {
3
4
  ghost?: boolean;
4
5
  colored?: boolean;
@@ -6,10 +6,12 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
6
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
  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
8
  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; }
9
- import { Alert as AntAlert, ConfigProvider } from 'antd';
9
+ import { Alert as AntAlert } from 'antd';
10
10
  import classNames from 'classnames';
11
11
  import { useContext } from 'react';
12
+ import ConfigProvider from "../config-provider";
12
13
  import useStyle from "./style";
14
+ export * from 'antd/es/alert';
13
15
  var Alert = function Alert(_ref) {
14
16
  var _classNames;
15
17
  var ghost = _ref.ghost,
@@ -1,4 +1,5 @@
1
1
  import type { ButtonProps as AntButtonProps } from 'antd/es/button';
2
+ export * from 'antd/es/button';
2
3
  export declare type ButtonProps = AntButtonProps;
3
4
  declare const Button: {
4
5
  ({ prefixCls: customizePrefixCls, className, ...restProps }: ButtonProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -2,10 +2,12 @@ var _excluded = ["prefixCls", "className"];
2
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
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
- import { Button as AntButton, ConfigProvider } from 'antd';
5
+ import { Button as AntButton } from 'antd';
6
6
  import classNames from 'classnames';
7
7
  import { useContext } from 'react';
8
+ import ConfigProvider from "../config-provider";
8
9
  import useStyle from "./style";
10
+ export * from 'antd/es/button';
9
11
  var Button = function Button(_ref) {
10
12
  var customizePrefixCls = _ref.prefixCls,
11
13
  className = _ref.className,
@@ -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';
3
4
  export interface CardTabListType extends AntCardTabListType {
4
5
  tag?: React.ReactNode;
5
6
  }
@@ -15,11 +15,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  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; }
16
16
  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; }
17
17
  import { isNullValue } from '@oceanbase/util';
18
- import { Card as AntCard, ConfigProvider as AntConfigProvider, Space, Tag } from 'antd';
18
+ import { Card as AntCard, Space, Tag } from 'antd';
19
19
  import classNames from 'classnames';
20
20
  import React, { useContext, useRef, useState } from 'react';
21
- import useInkBar from "../Tabs/hooks/useInkBar";
21
+ import ConfigProvider from "../config-provider";
22
+ import useInkBar from "../tabs/hooks/useInkBar";
22
23
  import useStyle from "./style";
24
+ export * from 'antd/es/card';
23
25
  var Card = function Card(_ref) {
24
26
  var children = _ref.children,
25
27
  _ref$divided = _ref.divided,
@@ -32,7 +34,7 @@ var Card = function Card(_ref) {
32
34
  customizePrefixCls = _ref.prefixCls,
33
35
  className = _ref.className,
34
36
  restProps = _objectWithoutProperties(_ref, _excluded);
35
- var _useContext = useContext(AntConfigProvider.ConfigContext),
37
+ var _useContext = useContext(ConfigProvider.ConfigContext),
36
38
  getPrefixCls = _useContext.getPrefixCls;
37
39
  var prefixCls = getPrefixCls('card', customizePrefixCls);
38
40
  var tabsPrefixCls = getPrefixCls('tabs', customizePrefixCls);
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
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
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
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
- import { genTagStyle } from "../../Tabs/style";
7
+ import { genTagStyle } from "../../tabs/style";
8
8
  import { genComponentStyleHook } from "../../_util/genComponentStyleHook";
9
9
  export var genCardStyle = function genCardStyle(token) {
10
10
  var _$concat$concat, _ref;
@@ -0,0 +1 @@
1
+ export * from 'antd/es/color-picker/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/color-picker/interface';
@@ -1,5 +1,5 @@
1
1
  import type { ConfigProviderProps } from 'antd/es/config-provider';
2
- export { globalConfig } from 'antd/es/config-provider';
2
+ export * from 'antd/es/config-provider';
3
3
  declare const ConfigProvider: {
4
4
  ({ children, ...restProps }: ConfigProviderProps): import("react").JSX.Element;
5
5
  ConfigContext: import("react").Context<import("antd/es/config-provider").ConfigConsumerProps>;
@@ -2,8 +2,8 @@ var _excluded = ["children"];
2
2
  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; }
3
3
  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; }
4
4
  import { App, ConfigProvider as AntConfigProvider } from 'antd';
5
- import StaticFunction from "../StaticFunction";
6
- export { globalConfig } from 'antd/es/config-provider';
5
+ import StaticFunction from "../static-function";
6
+ export * from 'antd/es/config-provider';
7
7
 
8
8
  // ConfigProvider 默认内嵌 App,支持 message, notification 和 Modal 等静态方法消费 ConfigProvider 配置
9
9
  // ref: https://ant-design.antgroup.com/components/app-cn
@@ -1,6 +1,7 @@
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
+ export * from 'antd/es/descriptions';
4
5
  export declare type DescriptionsProps = AntDescriptionsProps;
5
6
  declare const Descriptions: {
6
7
  ({ children, bordered, prefixCls: customizePrefixCls, className, ...restProps }: DescriptionsProps): ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -10,13 +10,15 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
10
10
  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
11
  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; }
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
- import { ConfigProvider, Descriptions as AntDescriptions, Typography } from 'antd';
13
+ import { Descriptions as AntDescriptions, Typography } from 'antd';
14
14
  import classNames from 'classnames';
15
15
  import { isObject } from 'lodash';
16
16
  import toArray from 'rc-util/lib/Children/toArray';
17
17
  import React, { isValidElement, useContext } from 'react';
18
+ import ConfigProvider from "../config-provider";
18
19
  import DescriptionsItem from "./Item";
19
20
  import useStyle from "./style";
21
+ export * from 'antd/es/descriptions';
20
22
  var Descriptions = function Descriptions(_ref) {
21
23
  var children = _ref.children,
22
24
  bordered = _ref.bordered,
@@ -0,0 +1 @@
1
+ export * from 'antd/es/float-button/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/float-button/interface';
@@ -1,7 +1,7 @@
1
1
  import type { FormItemProps as AntFormItemProps } from 'antd/es/form';
2
2
  import type { ReactNode } from 'react';
3
3
  import React from 'react';
4
- import type { TooltipProps } from '../Tooltip';
4
+ import type { TooltipProps } from '../tooltip';
5
5
  export declare type WrapperTooltipProps = Omit<TooltipProps, 'mouseFollow'> & {
6
6
  icon?: React.ReactElement;
7
7
  };
@@ -11,7 +11,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
11
11
  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; }
12
12
  import { Form as AntForm } from 'antd';
13
13
  import React from 'react';
14
- import { getTooltipTypeList } from "../Tooltip";
14
+ import { getTooltipTypeList } from "../tooltip";
15
15
  var AntFormItem = AntForm.Item;
16
16
  var Item = function Item(_ref) {
17
17
  var children = _ref.children,
@@ -1,2 +1,3 @@
1
1
  import { Form } from 'antd';
2
+ export * from 'antd/es/form';
2
3
  export default Form;
@@ -1,4 +1,5 @@
1
1
  import { Form } from 'antd';
2
2
  import Item from "./FormItem";
3
+ export * from 'antd/es/form';
3
4
  Form.Item = Item;
4
5
  export default Form;
@@ -0,0 +1 @@
1
+ export * from 'antd/es/form/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/form/interface';
package/es/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  import 'antd/dist/reset.css';
2
2
  export * from 'antd';
3
3
  export { version } from '../package.json';
4
- export { default as Alert } from './Alert';
5
- export { default as Button } from './Button';
6
- export { default as Card } from './Card';
7
- export { default as ConfigProvider } from './ConfigProvider';
8
- export { default as Descriptions } from './Descriptions';
9
- export { default as Form } from './Form';
10
- export { default as Modal } from './Modal';
11
- export { message, notification, token } from './StaticFunction';
12
- export { default as Table } from './Table';
13
- export { default as Tabs } from './Tabs';
4
+ export { default as Alert } from './alert';
5
+ export { default as Button } from './button';
6
+ export { default as Card } from './card';
7
+ export { default as ConfigProvider } from './config-provider';
8
+ export { default as Descriptions } from './descriptions';
9
+ export { default as Form } from './form';
10
+ export { default as Modal } from './modal';
11
+ export { message, notification, token } from './static-function';
12
+ export { default as Table } from './table';
13
+ export { default as Tabs } from './tabs';
14
14
  export { default as theme } from './theme';
15
- export { default as Tooltip } from './Tooltip';
15
+ export { default as Tooltip } from './tooltip';
16
16
  declare const useToken: () => {
17
17
  theme: import("@ant-design/cssinjs").Theme<import("antd/es/theme/internal").SeedToken, import("antd/es/theme/interface").MapToken>;
18
18
  token: import("antd").GlobalToken;
package/es/index.js CHANGED
@@ -3,23 +3,20 @@ import { theme } from 'antd';
3
3
  // 引入 antd/dist/reset.css,以重置基本样式,保证原生元素遵从 antd 规范样式
4
4
  // ref: https://ant-design.antgroup.com/docs/react/migration-v5-cn#%E6%8A%80%E6%9C%AF%E8%B0%83%E6%95%B4
5
5
  import 'antd/dist/reset.css';
6
-
7
- // 基础组件
8
- // 业务组件
9
6
  export * from 'antd';
10
7
  export { version } from "../package.json";
11
- export { default as Alert } from "./Alert";
12
- export { default as Button } from "./Button";
13
- export { default as Card } from "./Card";
14
- export { default as ConfigProvider } from "./ConfigProvider";
15
- export { default as Descriptions } from "./Descriptions";
16
- export { default as Form } from "./Form";
17
- export { default as Modal } from "./Modal";
18
- export { message, notification, token } from "./StaticFunction";
19
- export { default as Table } from "./Table";
20
- export { default as Tabs } from "./Tabs";
8
+ export { default as Alert } from "./alert";
9
+ export { default as Button } from "./button";
10
+ export { default as Card } from "./card";
11
+ export { default as ConfigProvider } from "./config-provider";
12
+ export { default as Descriptions } from "./descriptions";
13
+ export { default as Form } from "./form";
14
+ export { default as Modal } from "./modal";
15
+ export { message, notification, token } from "./static-function";
16
+ export { default as Table } from "./table";
17
+ export { default as Tabs } from "./tabs";
21
18
  export { default as theme } from "./theme";
22
- export { default as Tooltip } from "./Tooltip";
19
+ export { default as Tooltip } from "./tooltip";
23
20
  var useToken = theme.useToken;
24
21
 
25
22
  // 直接导出 useToken,方便上层使用
@@ -1,5 +1,5 @@
1
1
  import type { Locale as AntLocale } from 'antd/es/locale';
2
- import type { TableLocale } from '../Table';
2
+ import type { TableLocale } from '../table';
3
3
  export interface Locale extends AntLocale {
4
4
  Table?: TableLocale;
5
5
  }
@@ -0,0 +1 @@
1
+ export * from 'antd/es/message/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/message/interface';
@@ -1,4 +1,5 @@
1
1
  import type { ModalProps as AntModalProps } from 'antd/es/modal';
2
+ export * from 'antd/es/modal';
2
3
  export declare type ModalProps = AntModalProps;
3
4
  declare const Modal: {
4
5
  ({ prefixCls: customizePrefixCls, className, ...restProps }: ModalProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -2,11 +2,13 @@ var _excluded = ["prefixCls", "className"];
2
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
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
- import { ConfigProvider, Modal as AntModal } from 'antd';
5
+ import { Modal as AntModal } from 'antd';
6
6
  import classNames from 'classnames';
7
7
  import { useContext } from 'react';
8
- import { modal } from "../StaticFunction";
8
+ import ConfigProvider from "../config-provider";
9
+ import { modal } from "../static-function";
9
10
  import useStyle from "./style";
11
+ export * from 'antd/es/modal';
10
12
  var Modal = function Modal(_ref) {
11
13
  var customizePrefixCls = _ref.prefixCls,
12
14
  className = _ref.className,
@@ -0,0 +1 @@
1
+ export * from 'antd/es/modal/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/modal/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/notification/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/notification/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/qrcode/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/qrcode/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/radio/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/radio/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/statistic/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/statistic/interface';
@@ -3,6 +3,7 @@ import type { ColumnsType } from 'antd/es/table';
3
3
  import type { TableLocale as AntTableLocale } from 'antd/es/table/interface';
4
4
  import type { ReactElement, ReactNode } from 'react';
5
5
  import React from 'react';
6
+ export * from 'antd/es/table';
6
7
  export interface TableLocale extends AntTableLocale {
7
8
  batchOperationBar?: {
8
9
  selected?: string;
@@ -21,4 +22,14 @@ export interface TableProps<T> extends AntTableProps<T> {
21
22
  locale?: TableLocale;
22
23
  }
23
24
  declare function Table<T>(props: TableProps<T>): ReactElement<any, string | React.JSXElementConstructor<any>>;
25
+ declare namespace Table {
26
+ var SELECTION_COLUMN: {};
27
+ var EXPAND_COLUMN: any;
28
+ var SELECTION_ALL: "SELECT_ALL";
29
+ var SELECTION_INVERT: "SELECT_INVERT";
30
+ var SELECTION_NONE: "SELECT_NONE";
31
+ var Column: typeof import("antd/es/table/Column").default;
32
+ var ColumnGroup: typeof import("antd/es/table/ColumnGroup").default;
33
+ var Summary: any;
34
+ }
24
35
  export default Table;
@@ -11,13 +11,15 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
11
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
12
  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; } }
13
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
- import { ConfigProvider, Popover, Space, Table as AntTable, Typography } from 'antd';
14
+ import { Popover, Space, Table as AntTable, Typography } from 'antd';
15
15
  import { useLocale } from 'antd/es/locale';
16
16
  import classNames from 'classnames';
17
17
  import { isEmpty } from 'lodash';
18
18
  import React, { useContext, useEffect, useState } from 'react';
19
+ import ConfigProvider from "../config-provider";
19
20
  import enUS from "../locale/en-US";
20
21
  import useStyle from "./style";
22
+ export * from 'antd/es/table';
21
23
  function Table(props) {
22
24
  var customLocale = props.locale,
23
25
  columns = props.columns,
@@ -141,4 +143,12 @@ function Table(props) {
141
143
  })
142
144
  })));
143
145
  }
146
+ Table.SELECTION_COLUMN = AntTable.SELECTION_COLUMN;
147
+ Table.EXPAND_COLUMN = AntTable.EXPAND_COLUMN;
148
+ Table.SELECTION_ALL = AntTable.SELECTION_ALL;
149
+ Table.SELECTION_INVERT = AntTable.SELECTION_INVERT;
150
+ Table.SELECTION_NONE = AntTable.SELECTION_NONE;
151
+ Table.Column = AntTable.Column;
152
+ Table.ColumnGroup = AntTable.ColumnGroup;
153
+ Table.Summary = AntTable.Summary;
144
154
  export default Table;
@@ -0,0 +1 @@
1
+ export * from 'antd/es/table/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/table/interface';
@@ -1,6 +1,7 @@
1
1
  import type { TabsPosition as AntTabsPosition, TabsProps as AntTabsProps } from 'antd/es/tabs';
2
2
  import type { Tab as AntTab } from 'rc-tabs/es/interface';
3
3
  import React from 'react';
4
+ export * from 'antd/es/tabs';
4
5
  export type { TabPaneProps } from './TabPane';
5
6
  export interface Tab extends AntTab {
6
7
  tag?: React.ReactNode;
@@ -15,13 +15,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  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; }
16
16
  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; }
17
17
  import { isNullValue } from '@oceanbase/util';
18
- import { ConfigProvider as AntConfigProvider, Space, Tabs as AntTabs, Tag } from 'antd';
18
+ import { Space, Tabs as AntTabs, Tag } from 'antd';
19
19
  import classNames from 'classnames';
20
20
  import React, { useContext, useRef, useState } from 'react';
21
+ import ConfigProvider from "../config-provider";
21
22
  import useInkBar from "./hooks/useInkBar";
22
23
  import useLegacyItems from "./hooks/useLegacyItems";
23
24
  import useStyle from "./style";
24
25
  import TabPane from "./TabPane";
26
+ export * from 'antd/es/tabs';
25
27
  var Tabs = function Tabs(_ref) {
26
28
  var _newItems;
27
29
  var children = _ref.children,
@@ -35,7 +37,7 @@ var Tabs = function Tabs(_ref) {
35
37
  customizePrefixCls = _ref.prefixCls,
36
38
  className = _ref.className,
37
39
  restProps = _objectWithoutProperties(_ref, _excluded);
38
- var _useContext = useContext(AntConfigProvider.ConfigContext),
40
+ var _useContext = useContext(ConfigProvider.ConfigContext),
39
41
  getPrefixCls = _useContext.getPrefixCls;
40
42
  var prefixCls = getPrefixCls('tabs', customizePrefixCls);
41
43
  var _useStyle = useStyle(prefixCls),
@@ -1,3 +1,4 @@
1
+ export * from 'antd/es/theme';
1
2
  declare const _default: {
2
3
  defaultSeed: {
3
4
  colorPrimary: string;
package/es/theme/index.js CHANGED
@@ -5,6 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
5
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
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 { theme } from 'antd';
8
+ export * from 'antd/es/theme';
8
9
  var defaultSeed = _objectSpread(_objectSpread({}, theme.defaultSeed), {}, {
9
10
  colorPrimary: '#006AFF',
10
11
  colorSuccess: '#0ac185',
@@ -0,0 +1 @@
1
+ export * from 'antd/es/theme/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/theme/interface';
@@ -18,7 +18,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
18
18
  import { useMouse, useSize } from 'ahooks';
19
19
  import React, { useRef, useState } from 'react';
20
20
  import ReactStickyMouseTooltip from 'react-sticky-mouse-tooltip';
21
- import { token } from "../StaticFunction";
21
+ import { token } from "../static-function";
22
22
  var MouseTooltip = function MouseTooltip(_ref) {
23
23
  var children = _ref.children,
24
24
  title = _ref.title,
@@ -1,5 +1,6 @@
1
1
  import type { TooltipPropsWithTitle as AntTooltipPropsWithTitle } from 'antd/es/tooltip';
2
2
  import React from 'react';
3
+ export * from 'antd/es/tooltip';
3
4
  export declare type TooltipType = 'default' | 'light' | 'success' | 'info' | 'warning' | 'error';
4
5
  export interface TooltipProps extends AntTooltipPropsWithTitle {
5
6
  type?: TooltipType;
@@ -10,8 +10,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
10
10
  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
11
  import { Tooltip as AntTooltip } from 'antd';
12
12
  import React from 'react';
13
- import { token } from "../StaticFunction";
13
+ import { token } from "../static-function";
14
14
  import MouseTooltip from "./MouseTooltip";
15
+ export * from 'antd/es/tooltip';
15
16
  export var getTooltipTypeList = function getTooltipTypeList() {
16
17
  return [{
17
18
  type: 'light',
@@ -0,0 +1 @@
1
+ export * from 'antd/es/tour/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/tour/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/transfer/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/transfer/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/upload/interface';
@@ -0,0 +1 @@
1
+ export * from 'antd/es/upload/interface';
@@ -1,4 +1,5 @@
1
1
  import type { AlertProps as AntAlertProps } from 'antd/es/alert';
2
+ export * from 'antd/es/alert';
2
3
  export interface AlertProps extends AntAlertProps {
3
4
  ghost?: boolean;
4
5
  colored?: boolean;
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
21
  // If the importer is in node compatibility mode or this is not an ESM
21
22
  // file that has been converted to a CommonJS file using a Babel-
@@ -26,16 +27,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
27
  ));
27
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
29
 
29
- // src/Alert/index.tsx
30
- var Alert_exports = {};
31
- __export(Alert_exports, {
32
- default: () => Alert_default
30
+ // src/alert/index.tsx
31
+ var alert_exports = {};
32
+ __export(alert_exports, {
33
+ default: () => alert_default
33
34
  });
34
- module.exports = __toCommonJS(Alert_exports);
35
+ module.exports = __toCommonJS(alert_exports);
35
36
  var import_antd = require("antd");
36
37
  var import_classnames = __toESM(require("classnames"));
37
38
  var import_react = require("react");
39
+ var import_config_provider = __toESM(require("../config-provider"));
38
40
  var import_style = __toESM(require("./style"));
41
+ __reExport(alert_exports, require("antd/es/alert"), module.exports);
39
42
  var Alert = ({
40
43
  ghost,
41
44
  colored,
@@ -43,7 +46,7 @@ var Alert = ({
43
46
  className,
44
47
  ...restProps
45
48
  }) => {
46
- const { getPrefixCls } = (0, import_react.useContext)(import_antd.ConfigProvider.ConfigContext);
49
+ const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
47
50
  const prefixCls = getPrefixCls("alert", customizePrefixCls);
48
51
  const { wrapSSR, hashId } = (0, import_style.default)(prefixCls);
49
52
  const alertCls = (0, import_classnames.default)(
@@ -60,4 +63,8 @@ Alert.ErrorBoundary = import_antd.Alert.ErrorBoundary;
60
63
  if (process.env.NODE_ENV !== "production") {
61
64
  Alert.displayName = import_antd.Alert.displayName;
62
65
  }
63
- var Alert_default = Alert;
66
+ var alert_default = Alert;
67
+ // Annotate the CommonJS export names for ESM import in node:
68
+ 0 && (module.exports = {
69
+ ...require("antd/es/alert")
70
+ });
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
 
19
- // src/Alert/style/index.ts
19
+ // src/alert/style/index.ts
20
20
  var style_exports = {};
21
21
  __export(style_exports, {
22
22
  default: () => style_default,
@@ -1,4 +1,5 @@
1
1
  import type { ButtonProps as AntButtonProps } from 'antd/es/button';
2
+ export * from 'antd/es/button';
2
3
  export declare type ButtonProps = AntButtonProps;
3
4
  declare const Button: {
4
5
  ({ prefixCls: customizePrefixCls, className, ...restProps }: ButtonProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;