@oceanbase/design 0.2.2 → 0.2.4

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.
@@ -1,11 +1,12 @@
1
1
  import type { AlertProps as AntAlertProps } from 'antd/es/alert';
2
+ import React from 'react';
2
3
  export * from 'antd/es/alert';
3
4
  export interface AlertProps extends AntAlertProps {
4
5
  ghost?: boolean;
5
6
  colored?: boolean;
6
7
  }
7
8
  declare const Alert: {
8
- ({ ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
9
+ ({ ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
9
10
  ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
10
11
  displayName: string;
11
12
  };
package/es/alert/index.js CHANGED
@@ -8,7 +8,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
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
9
  import { Alert as AntAlert } from 'antd';
10
10
  import classNames from 'classnames';
11
- import { useContext } from 'react';
11
+ import React, { useContext } from 'react';
12
12
  import ConfigProvider from "../config-provider";
13
13
  import useStyle from "./style";
14
14
  export * from 'antd/es/alert';
@@ -1,9 +1,10 @@
1
1
  import type { ButtonProps as AntButtonProps } from 'antd/es/button';
2
+ import React from 'react';
2
3
  export * from 'antd/es/button';
3
4
  export declare type ButtonProps = AntButtonProps;
4
5
  declare const Button: {
5
- ({ prefixCls: customizePrefixCls, className, ...restProps }: ButtonProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
- Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
6
+ ({ prefixCls: customizePrefixCls, className, ...restProps }: ButtonProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
7
+ Group: React.FC<import("antd/es/button").ButtonGroupProps>;
7
8
  __ANT_BUTTON: any;
8
9
  displayName: string;
9
10
  };
@@ -4,7 +4,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
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
5
  import { Button as AntButton } from 'antd';
6
6
  import classNames from 'classnames';
7
- import { useContext } from 'react';
7
+ import React, { useContext } from 'react';
8
8
  import ConfigProvider from "../config-provider";
9
9
  import useStyle from "./style";
10
10
  export * from 'antd/es/button';
@@ -1,9 +1,10 @@
1
+ import React from 'react';
1
2
  import type { ConfigProviderProps } from 'antd/es/config-provider';
2
3
  export * from 'antd/es/config-provider';
3
4
  declare const ConfigProvider: {
4
- ({ children, ...restProps }: ConfigProviderProps): import("react").JSX.Element;
5
- ConfigContext: import("react").Context<import("antd/es/config-provider").ConfigConsumerProps>;
6
- SizeContext: import("react").Context<import("antd/es/button").ButtonSize>;
5
+ ({ children, ...restProps }: ConfigProviderProps): React.JSX.Element;
6
+ ConfigContext: React.Context<import("antd/es/config-provider").ConfigConsumerProps>;
7
+ SizeContext: React.Context<import("antd/es/button").ButtonSize>;
7
8
  config: ({ prefixCls, iconPrefixCls, theme, }: Pick<ConfigProviderProps, "prefixCls" | "iconPrefixCls"> & {
8
9
  theme?: import("antd").ThemeConfig | import("antd/es/config-provider/context").Theme;
9
10
  }) => void;
@@ -1,6 +1,7 @@
1
1
  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
+ import React from 'react';
4
5
  import { App, ConfigProvider as AntConfigProvider } from 'antd';
5
6
  import StaticFunction from "../static-function";
6
7
  export * from 'antd/es/config-provider';
@@ -1,8 +1,9 @@
1
1
  import type { ModalProps as AntModalProps } from 'antd/es/modal';
2
+ import React from 'react';
2
3
  export * from 'antd/es/modal';
3
4
  export declare type ModalProps = AntModalProps;
4
5
  declare const Modal: {
5
- ({ prefixCls: customizePrefixCls, className, ...restProps }: ModalProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
+ ({ prefixCls: customizePrefixCls, className, ...restProps }: ModalProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
6
7
  info(props: any): {
7
8
  destroy: () => void;
8
9
  update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
package/es/modal/index.js CHANGED
@@ -4,7 +4,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
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
5
  import { Modal as AntModal } from 'antd';
6
6
  import classNames from 'classnames';
7
- import { useContext } from 'react';
7
+ import React, { useContext } from 'react';
8
8
  import ConfigProvider from "../config-provider";
9
9
  import { modal } from "../static-function";
10
10
  import useStyle from "./style";
@@ -1,11 +1,12 @@
1
1
  import type { AlertProps as AntAlertProps } from 'antd/es/alert';
2
+ import React from 'react';
2
3
  export * from 'antd/es/alert';
3
4
  export interface AlertProps extends AntAlertProps {
4
5
  ghost?: boolean;
5
6
  colored?: boolean;
6
7
  }
7
8
  declare const Alert: {
8
- ({ ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
9
+ ({ ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
9
10
  ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
10
11
  displayName: string;
11
12
  };
@@ -35,7 +35,7 @@ __export(alert_exports, {
35
35
  module.exports = __toCommonJS(alert_exports);
36
36
  var import_antd = require("antd");
37
37
  var import_classnames = __toESM(require("classnames"));
38
- var import_react = require("react");
38
+ var import_react = __toESM(require("react"));
39
39
  var import_config_provider = __toESM(require("../config-provider"));
40
40
  var import_style = __toESM(require("./style"));
41
41
  __reExport(alert_exports, require("antd/es/alert"), module.exports);
@@ -57,7 +57,7 @@ var Alert = ({
57
57
  className,
58
58
  hashId
59
59
  );
60
- return wrapSSR(/* @__PURE__ */ React.createElement(import_antd.Alert, { prefixCls: customizePrefixCls, className: alertCls, ...restProps }));
60
+ return wrapSSR(/* @__PURE__ */ import_react.default.createElement(import_antd.Alert, { prefixCls: customizePrefixCls, className: alertCls, ...restProps }));
61
61
  };
62
62
  Alert.ErrorBoundary = import_antd.Alert.ErrorBoundary;
63
63
  if (process.env.NODE_ENV !== "production") {
@@ -1,9 +1,10 @@
1
1
  import type { ButtonProps as AntButtonProps } from 'antd/es/button';
2
+ import React from 'react';
2
3
  export * from 'antd/es/button';
3
4
  export declare type ButtonProps = AntButtonProps;
4
5
  declare const Button: {
5
- ({ prefixCls: customizePrefixCls, className, ...restProps }: ButtonProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
- Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
6
+ ({ prefixCls: customizePrefixCls, className, ...restProps }: ButtonProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
7
+ Group: React.FC<import("antd/es/button").ButtonGroupProps>;
7
8
  __ANT_BUTTON: any;
8
9
  displayName: string;
9
10
  };
@@ -35,7 +35,7 @@ __export(button_exports, {
35
35
  module.exports = __toCommonJS(button_exports);
36
36
  var import_antd = require("antd");
37
37
  var import_classnames = __toESM(require("classnames"));
38
- var import_react = require("react");
38
+ var import_react = __toESM(require("react"));
39
39
  var import_config_provider = __toESM(require("../config-provider"));
40
40
  var import_style = __toESM(require("./style"));
41
41
  __reExport(button_exports, require("antd/es/button"), module.exports);
@@ -44,7 +44,7 @@ var Button = ({ prefixCls: customizePrefixCls, className, ...restProps }) => {
44
44
  const prefixCls = getPrefixCls("btn", customizePrefixCls);
45
45
  const { wrapSSR, hashId } = (0, import_style.default)(prefixCls);
46
46
  const buttonCls = (0, import_classnames.default)(className, hashId);
47
- return wrapSSR(/* @__PURE__ */ React.createElement(import_antd.Button, { prefixCls: customizePrefixCls, className: buttonCls, ...restProps }));
47
+ return wrapSSR(/* @__PURE__ */ import_react.default.createElement(import_antd.Button, { prefixCls: customizePrefixCls, className: buttonCls, ...restProps }));
48
48
  };
49
49
  Button.Group = import_antd.Button.Group;
50
50
  Button.__ANT_BUTTON = import_antd.Button.__ANT_BUTTON;
@@ -1,9 +1,10 @@
1
+ import React from 'react';
1
2
  import type { ConfigProviderProps } from 'antd/es/config-provider';
2
3
  export * from 'antd/es/config-provider';
3
4
  declare const ConfigProvider: {
4
- ({ children, ...restProps }: ConfigProviderProps): import("react").JSX.Element;
5
- ConfigContext: import("react").Context<import("antd/es/config-provider").ConfigConsumerProps>;
6
- SizeContext: import("react").Context<import("antd/es/button").ButtonSize>;
5
+ ({ children, ...restProps }: ConfigProviderProps): React.JSX.Element;
6
+ ConfigContext: React.Context<import("antd/es/config-provider").ConfigConsumerProps>;
7
+ SizeContext: React.Context<import("antd/es/button").ButtonSize>;
7
8
  config: ({ prefixCls, iconPrefixCls, theme, }: Pick<ConfigProviderProps, "prefixCls" | "iconPrefixCls"> & {
8
9
  theme?: import("antd").ThemeConfig | import("antd/es/config-provider/context").Theme;
9
10
  }) => void;
@@ -33,11 +33,12 @@ __export(config_provider_exports, {
33
33
  default: () => config_provider_default
34
34
  });
35
35
  module.exports = __toCommonJS(config_provider_exports);
36
+ var import_react = __toESM(require("react"));
36
37
  var import_antd = require("antd");
37
38
  var import_static_function = __toESM(require("../static-function"));
38
39
  __reExport(config_provider_exports, require("antd/es/config-provider"), module.exports);
39
40
  var ConfigProvider = ({ children, ...restProps }) => {
40
- return /* @__PURE__ */ React.createElement(import_antd.ConfigProvider, { ...restProps }, /* @__PURE__ */ React.createElement(import_antd.App, null, children, /* @__PURE__ */ React.createElement(import_static_function.default, null)));
41
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.ConfigProvider, { ...restProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.App, null, children, /* @__PURE__ */ import_react.default.createElement(import_static_function.default, null)));
41
42
  };
42
43
  ConfigProvider.ConfigContext = import_antd.ConfigProvider.ConfigContext;
43
44
  ConfigProvider.SizeContext = import_antd.ConfigProvider.SizeContext;
package/lib/form/index.js CHANGED
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
- // src/form/index.tsx
30
+ // src/form/index.ts
31
31
  var form_exports = {};
32
32
  __export(form_exports, {
33
33
  default: () => form_default
@@ -1,8 +1,9 @@
1
1
  import type { ModalProps as AntModalProps } from 'antd/es/modal';
2
+ import React from 'react';
2
3
  export * from 'antd/es/modal';
3
4
  export declare type ModalProps = AntModalProps;
4
5
  declare const Modal: {
5
- ({ prefixCls: customizePrefixCls, className, ...restProps }: ModalProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
6
+ ({ prefixCls: customizePrefixCls, className, ...restProps }: ModalProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
6
7
  info(props: any): {
7
8
  destroy: () => void;
8
9
  update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
@@ -35,7 +35,7 @@ __export(modal_exports, {
35
35
  module.exports = __toCommonJS(modal_exports);
36
36
  var import_antd = require("antd");
37
37
  var import_classnames = __toESM(require("classnames"));
38
- var import_react = require("react");
38
+ var import_react = __toESM(require("react"));
39
39
  var import_config_provider = __toESM(require("../config-provider"));
40
40
  var import_static_function = require("../static-function");
41
41
  var import_style = __toESM(require("./style"));
@@ -45,7 +45,7 @@ var Modal = ({ prefixCls: customizePrefixCls, className, ...restProps }) => {
45
45
  const prefixCls = getPrefixCls("modal", customizePrefixCls);
46
46
  const { wrapSSR, hashId } = (0, import_style.default)(prefixCls);
47
47
  const modalCls = (0, import_classnames.default)(className, hashId);
48
- return wrapSSR(/* @__PURE__ */ React.createElement(import_antd.Modal, { prefixCls: customizePrefixCls, className: modalCls, ...restProps }));
48
+ return wrapSSR(/* @__PURE__ */ import_react.default.createElement(import_antd.Modal, { prefixCls: customizePrefixCls, className: modalCls, ...restProps }));
49
49
  };
50
50
  Modal.info = (props) => import_static_function.modal.info(props);
51
51
  Modal.success = (props) => import_static_function.modal.success(props);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oceanbase/design",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "The Design System for OceanBase",
5
5
  "keywords": [
6
6
  "OceanBase",
@@ -38,7 +38,7 @@
38
38
  "@ant-design/cssinjs": "^1.9.1",
39
39
  "@ant-design/icons": "^4.2.1",
40
40
  "@ant-design/pro-components": "^2.4.12",
41
- "@oceanbase/util": "^0.2.1",
41
+ "@oceanbase/util": "^0.2.2",
42
42
  "ahooks": "^2.10.0",
43
43
  "antd": "^5.6.0",
44
44
  "classnames": "^2.2.6",
@@ -55,5 +55,5 @@
55
55
  "react": "^16.9.0",
56
56
  "react-dom": "^16.9.0"
57
57
  },
58
- "gitHead": "2bc94e6eb09382e6749a9c1b71e85aa3d4ece7b1"
58
+ "gitHead": "1d271a0b8bfe3d9412495d63fa581a1eb9231ed9"
59
59
  }