@ccs-ui/rc-pro 2.2.6-beta-1 → 2.2.6-beta-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.
@@ -16,7 +16,7 @@ export type DialogButtonsProps<T> = Pick<CcsDialogModalProps, 'okText' | 'onClos
16
16
  export type DialogButtonRef = {
17
17
  onSetButtons: (e: React.ReactElement) => void;
18
18
  };
19
- export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "onOk" | "onClose" | "auth" | "extraBtn" | "request" | "requestFieldNames" | "preventRequestHandle"> & {
19
+ export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "onClose" | "onOk" | "auth" | "extraBtn" | "request" | "requestFieldNames" | "preventRequestHandle"> & {
20
20
  formRef: React.RefObject<DialogFormRef<TParams>>;
21
21
  formInitialValues: FormProps['initialValues'];
22
22
  buttonRef: RefObject<DialogButtonRef>;
@@ -13,6 +13,18 @@ type DialogInterface = {
13
13
  Buttons: typeof CcsDialogFooter;
14
14
  /** drawer footer */
15
15
  DrawerFooter: typeof CcsDrawerFooter;
16
+ /** ant message */
17
+ message: typeof ThemeDialog.message;
18
+ /** ant notice */
19
+ notice: typeof ThemeDialog.notice;
20
+ /** ant modal */
21
+ modal: typeof ThemeDialog.modal;
22
+ /** ant modal */
23
+ easyConfirm: typeof ThemeDialog.easyConfirm;
24
+ /** ant modal */
25
+ easyMessage: typeof ThemeDialog.easyMessage;
26
+ /** ant modal */
27
+ confirm: typeof ThemeDialog.confirm;
16
28
  };
17
- declare const CcsDialog: typeof ThemeDialog & DialogInterface;
29
+ declare const CcsDialog: DialogInterface;
18
30
  export default CcsDialog;
@@ -4,7 +4,15 @@ import { useDialogContext } from "./context";
4
4
  import CcsDrawerFooter from "./drawer-footer";
5
5
  import useCcsDialog from "./hook";
6
6
  import "./index.less";
7
- var CcsDialog = ThemeDialog;
7
+ import { Fragment as _Fragment } from "react/jsx-runtime";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ var CcsDialog = /*#__PURE__*/_jsx(_Fragment, {});
10
+ CcsDialog.message = ThemeDialog.message;
11
+ CcsDialog.notice = ThemeDialog.notice;
12
+ CcsDialog.modal = ThemeDialog.modal;
13
+ CcsDialog.easyConfirm = ThemeDialog.easyConfirm;
14
+ CcsDialog.easyMessage = ThemeDialog.easyMessage;
15
+ CcsDialog.confirm = ThemeDialog.confirm;
8
16
  CcsDialog.Buttons = CcsDialogFooter;
9
17
  CcsDialog.useDialog = useCcsDialog;
10
18
  CcsDialog.useInstance = useDialogContext;
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.2.6-beta-1",
3
+ "version": "2.2.6-beta-2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Hong"
8
8
  },
9
- "main": "plugin/index.js",
10
9
  "module": "es/index.js",
11
10
  "types": "es/index.d.ts",
12
11
  "files": [
13
- "es",
14
- "plugin"
12
+ "es"
15
13
  ],
16
14
  "scripts": {
17
15
  "build": "father build",
package/plugin/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: (api: any) => void;
2
- export default _default;
package/plugin/index.js DELETED
@@ -1,38 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/plugin/index.ts
20
- var plugin_exports = {};
21
- __export(plugin_exports, {
22
- default: () => plugin_default
23
- });
24
- module.exports = __toCommonJS(plugin_exports);
25
- var plugin_default = (api) => {
26
- api.addExtraBabelPlugins(() => [
27
- [
28
- "babel-plugin-import",
29
- {
30
- libraryName: "@ccs-ui/rc-pro",
31
- libraryDirectory: "es",
32
- style: true,
33
- camel2DashComponentName: false
34
- // 不将驼峰命名转换为短横线命名
35
- }
36
- ]
37
- ]);
38
- };