@cj-design/react 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs ADDED
@@ -0,0 +1,30 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Oe=require("react"),M=require("antd"),dr=require("@ant-design/icons");var N={exports:{}},Y={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var je;function vr(){if(je)return Y;je=1;var T=Oe,m=Symbol.for("react.element"),j=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,y=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x={key:!0,ref:!0,__self:!0,__source:!0};function w(E,s,R){var c,_={},O=null,D=null;R!==void 0&&(O=""+R),s.key!==void 0&&(O=""+s.key),s.ref!==void 0&&(D=s.ref);for(c in s)g.call(s,c)&&!x.hasOwnProperty(c)&&(_[c]=s[c]);if(E&&E.defaultProps)for(c in s=E.defaultProps,s)_[c]===void 0&&(_[c]=s[c]);return{$$typeof:m,type:E,key:O,ref:D,props:_,_owner:y.current}}return Y.Fragment=j,Y.jsx=w,Y.jsxs=w,Y}var U={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var xe;function pr(){return xe||(xe=1,process.env.NODE_ENV!=="production"&&(function(){var T=Oe,m=Symbol.for("react.element"),j=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),E=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),h=Symbol.iterator,Se="@@iterator";function Pe(e){if(e===null||typeof e!="object")return null;var r=h&&e[h]||e[Se];return typeof r=="function"?r:null}var F=T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];ke("error",e,t)}}function ke(e,r,t){{var n=F.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var De=!1,Fe=!1,Ae=!1,Ie=!1,$e=!1,ee;ee=Symbol.for("react.module.reference");function We(e){return!!(typeof e=="string"||typeof e=="function"||e===g||e===x||$e||e===y||e===R||e===c||Ie||e===D||De||Fe||Ae||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===_||e.$$typeof===w||e.$$typeof===E||e.$$typeof===s||e.$$typeof===ee||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function re(e){return e.displayName||"Context"}function S(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case g:return"Fragment";case j:return"Portal";case x:return"Profiler";case y:return"StrictMode";case R:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return re(r)+".Consumer";case w:var t=e;return re(t._context)+".Provider";case s:return Ye(e,e.render,"ForwardRef");case _:var n=e.displayName||null;return n!==null?n:S(e.type)||"Memo";case O:{var o=e,u=o._payload,i=o._init;try{return S(i(u))}catch{return null}}}return null}var P=Object.assign,$=0,te,ne,ae,ie,oe,ue,se;function le(){}le.__reactDisabledLog=!0;function Ue(){{if($===0){te=console.log,ne=console.info,ae=console.warn,ie=console.error,oe=console.group,ue=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function Me(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},e,{value:te}),info:P({},e,{value:ne}),warn:P({},e,{value:ae}),error:P({},e,{value:ie}),group:P({},e,{value:oe}),groupCollapsed:P({},e,{value:ue}),groupEnd:P({},e,{value:se})})}$<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=F.ReactCurrentDispatcher,K;function L(e,r,t){{if(K===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);K=n&&n[1]||""}return`
18
+ `+K+e}}var z=!1,V;{var Le=typeof WeakMap=="function"?WeakMap:Map;V=new Le}function fe(e,r){if(!e||z)return"";{var t=V.get(e);if(t!==void 0)return t}var n;z=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=J.current,J.current=null,Ue();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(p){n=p}Reflect.construct(e,[],i)}else{try{i.call()}catch(p){n=p}e.call(i.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(p){if(p&&n&&typeof p.stack=="string"){for(var a=p.stack.split(`
19
+ `),v=n.stack.split(`
20
+ `),l=a.length-1,f=v.length-1;l>=1&&f>=0&&a[l]!==v[f];)f--;for(;l>=1&&f>=0;l--,f--)if(a[l]!==v[f]){if(l!==1||f!==1)do if(l--,f--,f<0||a[l]!==v[f]){var b=`
21
+ `+a[l].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,b),b}while(l>=1&&f>=0);break}}}finally{z=!1,J.current=u,Me(),Error.prepareStackTrace=o}var I=e?e.displayName||e.name:"",k=I?L(I):"";return typeof e=="function"&&V.set(e,k),k}function Ve(e,r,t){return fe(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function q(e,r,t){if(e==null)return"";if(typeof e=="function")return fe(e,qe(e));if(typeof e=="string")return L(e);switch(e){case R:return L("Suspense");case c:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case s:return Ve(e.render);case _:return q(e.type,r,t);case O:{var n=e,o=n._payload,u=n._init;try{return q(u(o),r,t)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,ce={},de=F.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function Be(e,r,t,n,o){{var u=Function.call.bind(W);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(B(o),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),B(null)),a instanceof Error&&!(a.message in ce)&&(ce[a.message]=!0,B(o),d("Failed %s type: %s",t,a.message),B(null))}}}var Ne=Array.isArray;function G(e){return Ne(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ke(e){try{return ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(Ke(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),ve(e)}var ge=F.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},ye,he;function Ge(e){if(W.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(W.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function He(e,r){typeof e.ref=="string"&&ge.current}function Qe(e,r){{var t=function(){ye||(ye=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Ze(e,r){{var t=function(){he||(he=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var er=function(e,r,t,n,o,u,i){var a={$$typeof:m,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function rr(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(pe(t),a=""+t),Xe(r)&&(pe(r.key),a=""+r.key),Ge(r)&&(v=r.ref,He(r,o));for(u in r)W.call(r,u)&&!ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var l=e.defaultProps;for(u in l)i[u]===void 0&&(i[u]=l[u])}if(a||v){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Qe(i,f),v&&Ze(i,f)}return er(e,a,v,o,n,ge.current,i)}}var X=F.ReactCurrentOwner,be=F.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}var H;H=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===m}function me(){{if(X.current){var e=S(X.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function tr(e){return""}var Ee={};function nr(e){{var r=me();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
+
25
+ Check the top-level render call using <`+t+">.")}return r}}function Re(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=nr(r);if(Ee[t])return;Ee[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+S(e._owner.type)+"."),A(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function _e(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&Re(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var o=Pe(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)Q(i.value)&&Re(i.value,r)}}}function ar(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===s||r.$$typeof===_))t=r.propTypes;else return;if(t){var n=S(r);Be(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=S(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ir(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Te={};function Ce(e,r,t,n,o,u){{var i=We(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=tr();v?a+=v:a+=me();var l;e===null?l="null":G(e)?l="array":e!==void 0&&e.$$typeof===m?(l="<"+(S(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var f=rr(e,r,t,o,u);if(f==null)return f;if(i){var b=r.children;if(b!==void 0)if(n)if(G(b)){for(var I=0;I<b.length;I++)_e(b[I],e);Object.freeze&&Object.freeze(b)}else d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _e(b,e)}if(W.call(r,"key")){var k=S(e),p=Object.keys(r).filter(function(cr){return cr!=="key"}),Z=p.length>0?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}";if(!Te[k+Z]){var fr=p.length>0?"{"+p.join(": ..., ")+": ...}":"{}";d(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,Z,k,fr,k),Te[k+Z]=!0}}return e===g?ir(f):ar(f),f}}function or(e,r,t){return Ce(e,r,t,!0)}function ur(e,r,t){return Ce(e,r,t,!1)}var sr=ur,lr=or;U.Fragment=g,U.jsx=sr,U.jsxs=lr})()),U}var we;function gr(){return we||(we=1,process.env.NODE_ENV==="production"?N.exports=vr():N.exports=pr()),N.exports}var C=gr();const yr=({cjType:T="default",children:m,...j})=>{const g={primary:"primary",success:"primary",warning:"default",danger:"primary",default:"default"},y=T==="danger";return C.jsx(M.Button,{type:g[T],danger:y,...j,children:m})};function hr({columns:T,data:m,loading:j=!1,rowSelection:g=!1,pagination:y=!1,total:x=0,current:w=1,pageSize:E=10,onPageChange:s,onSelectionChange:R,...c}){const _=T.map(h=>({key:h.key||h.dataIndex,dataIndex:h.dataIndex,title:h.title,width:h.width,fixed:h.fixed,render:h.render})),O=g?{type:"checkbox",onChange:R}:void 0,D=y?{total:x,current:w,pageSize:E,showSizeChanger:!0,showQuickJumper:!0,showTotal:h=>`共 ${h} 条`,onChange:s}:!1;return C.jsxs(C.Fragment,{children:[C.jsx(M.Table,{columns:_,dataSource:m,loading:j,rowSelection:O,pagination:!1,rowKey:"id",...c}),y&&C.jsx("div",{style:{marginTop:16,display:"flex",justifyContent:"flex-end"},children:C.jsx(M.Pagination,{...D})})]})}const br=({buttonText:T="点击上传",buttonType:m="primary",showIcon:j=!0,tip:g,onSuccess:y,onError:x,...w})=>{const E={...w,onChange(s){const{status:R,response:c}=s.file;R==="done"&&y?y(c,s.file):R==="error"&&x&&x(s.file.error,s.file)}};return C.jsxs(M.Upload,{...E,children:[C.jsx(M.Button,{type:m,icon:j?C.jsx(dr.UploadOutlined,{}):void 0,children:T}),g&&C.jsx("div",{style:{marginTop:8,color:"#999",fontSize:12},children:g})]})};exports.CjButton=yr;exports.CjTable=hr;exports.CjUpload=br;
@@ -0,0 +1,49 @@
1
+ import { ButtonProps } from 'antd';
2
+ import { default as default_2 } from 'react';
3
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
4
+ import { TableProps } from 'antd/es/table';
5
+ import { UploadFile } from 'antd/es/upload';
6
+ import { UploadProps } from 'antd/es/upload';
7
+
8
+ export declare const CjButton: default_2.FC<CjButtonProps>;
9
+
10
+ declare interface CjButtonProps extends Omit<ButtonProps, 'type'> {
11
+ cjType?: 'primary' | 'success' | 'warning' | 'danger' | 'default';
12
+ }
13
+
14
+ declare interface CjColumn<T = any> {
15
+ key?: string;
16
+ dataIndex: string;
17
+ title: string;
18
+ width?: number | string;
19
+ fixed?: 'left' | 'right' | boolean;
20
+ render?: (value: any, record: T, index: number) => default_2.ReactNode;
21
+ }
22
+
23
+ export declare function CjTable<T extends object = any>({ columns, data, loading, rowSelection, pagination, total, current, pageSize, onPageChange, onSelectionChange, ...rest }: CjTableProps<T>): JSX_2.Element;
24
+
25
+ declare interface CjTableProps<T = any> extends Omit<TableProps<T>, 'columns' | 'pagination' | 'rowSelection'> {
26
+ columns: CjColumn<T>[];
27
+ data: T[];
28
+ loading?: boolean;
29
+ rowSelection?: boolean;
30
+ pagination?: boolean;
31
+ total?: number;
32
+ current?: number;
33
+ pageSize?: number;
34
+ onPageChange?: (page: number, pageSize: number) => void;
35
+ onSelectionChange?: (selectedRowKeys: default_2.Key[], selectedRows: T[]) => void;
36
+ }
37
+
38
+ export declare const CjUpload: default_2.FC<CjUploadProps>;
39
+
40
+ declare interface CjUploadProps extends Omit<UploadProps, 'onChange'> {
41
+ buttonText?: string;
42
+ buttonType?: 'primary' | 'default' | 'dashed' | 'link' | 'text';
43
+ showIcon?: boolean;
44
+ tip?: string;
45
+ onSuccess?: (response: any, file: UploadFile) => void;
46
+ onError?: (error: any, file: UploadFile) => void;
47
+ }
48
+
49
+ export { }
package/dist/index.mjs ADDED
@@ -0,0 +1,720 @@
1
+ import Oe from "react";
2
+ import { Button as Se, Table as dr, Pagination as vr, Upload as pr } from "antd";
3
+ import { UploadOutlined as gr } from "@ant-design/icons";
4
+ var J = { exports: {} }, Y = {};
5
+ /**
6
+ * @license React
7
+ * react-jsx-runtime.production.min.js
8
+ *
9
+ * Copyright (c) Facebook, Inc. and its affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */
14
+ var Ce;
15
+ function yr() {
16
+ if (Ce) return Y;
17
+ Ce = 1;
18
+ var T = Oe, b = Symbol.for("react.element"), x = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, y = T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function O(E, s, R) {
20
+ var c, _ = {}, S = null, D = null;
21
+ R !== void 0 && (S = "" + R), s.key !== void 0 && (S = "" + s.key), s.ref !== void 0 && (D = s.ref);
22
+ for (c in s) g.call(s, c) && !w.hasOwnProperty(c) && (_[c] = s[c]);
23
+ if (E && E.defaultProps) for (c in s = E.defaultProps, s) _[c] === void 0 && (_[c] = s[c]);
24
+ return { $$typeof: b, type: E, key: S, ref: D, props: _, _owner: y.current };
25
+ }
26
+ return Y.Fragment = x, Y.jsx = O, Y.jsxs = O, Y;
27
+ }
28
+ var U = {};
29
+ /**
30
+ * @license React
31
+ * react-jsx-runtime.development.js
32
+ *
33
+ * Copyright (c) Facebook, Inc. and its affiliates.
34
+ *
35
+ * This source code is licensed under the MIT license found in the
36
+ * LICENSE file in the root directory of this source tree.
37
+ */
38
+ var xe;
39
+ function hr() {
40
+ return xe || (xe = 1, process.env.NODE_ENV !== "production" && (function() {
41
+ var T = Oe, b = Symbol.for("react.element"), x = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), E = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), h = Symbol.iterator, je = "@@iterator";
42
+ function Pe(e) {
43
+ if (e === null || typeof e != "object")
44
+ return null;
45
+ var r = h && e[h] || e[je];
46
+ return typeof r == "function" ? r : null;
47
+ }
48
+ var F = T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
+ function d(e) {
50
+ {
51
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
52
+ t[n - 1] = arguments[n];
53
+ ke("error", e, t);
54
+ }
55
+ }
56
+ function ke(e, r, t) {
57
+ {
58
+ var n = F.ReactDebugCurrentFrame, o = n.getStackAddendum();
59
+ o !== "" && (r += "%s", t = t.concat([o]));
60
+ var u = t.map(function(i) {
61
+ return String(i);
62
+ });
63
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
64
+ }
65
+ }
66
+ var De = !1, Fe = !1, Ae = !1, Ie = !1, $e = !1, Z;
67
+ Z = Symbol.for("react.module.reference");
68
+ function We(e) {
69
+ return !!(typeof e == "string" || typeof e == "function" || e === g || e === w || $e || e === y || e === R || e === c || Ie || e === D || De || Fe || Ae || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === _ || e.$$typeof === O || e.$$typeof === E || e.$$typeof === s || // This needs to include all possible module reference object
70
+ // types supported by any Flight configuration anywhere since
71
+ // we don't know which Flight build this will end up being used
72
+ // with.
73
+ e.$$typeof === Z || e.getModuleId !== void 0));
74
+ }
75
+ function Ye(e, r, t) {
76
+ var n = e.displayName;
77
+ if (n)
78
+ return n;
79
+ var o = r.displayName || r.name || "";
80
+ return o !== "" ? t + "(" + o + ")" : t;
81
+ }
82
+ function ee(e) {
83
+ return e.displayName || "Context";
84
+ }
85
+ function j(e) {
86
+ if (e == null)
87
+ return null;
88
+ if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
89
+ return e.displayName || e.name || null;
90
+ if (typeof e == "string")
91
+ return e;
92
+ switch (e) {
93
+ case g:
94
+ return "Fragment";
95
+ case x:
96
+ return "Portal";
97
+ case w:
98
+ return "Profiler";
99
+ case y:
100
+ return "StrictMode";
101
+ case R:
102
+ return "Suspense";
103
+ case c:
104
+ return "SuspenseList";
105
+ }
106
+ if (typeof e == "object")
107
+ switch (e.$$typeof) {
108
+ case E:
109
+ var r = e;
110
+ return ee(r) + ".Consumer";
111
+ case O:
112
+ var t = e;
113
+ return ee(t._context) + ".Provider";
114
+ case s:
115
+ return Ye(e, e.render, "ForwardRef");
116
+ case _:
117
+ var n = e.displayName || null;
118
+ return n !== null ? n : j(e.type) || "Memo";
119
+ case S: {
120
+ var o = e, u = o._payload, i = o._init;
121
+ try {
122
+ return j(i(u));
123
+ } catch {
124
+ return null;
125
+ }
126
+ }
127
+ }
128
+ return null;
129
+ }
130
+ var P = Object.assign, $ = 0, re, te, ne, ae, ie, oe, ue;
131
+ function se() {
132
+ }
133
+ se.__reactDisabledLog = !0;
134
+ function Ue() {
135
+ {
136
+ if ($ === 0) {
137
+ re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, ue = console.groupEnd;
138
+ var e = {
139
+ configurable: !0,
140
+ enumerable: !0,
141
+ value: se,
142
+ writable: !0
143
+ };
144
+ Object.defineProperties(console, {
145
+ info: e,
146
+ log: e,
147
+ warn: e,
148
+ error: e,
149
+ group: e,
150
+ groupCollapsed: e,
151
+ groupEnd: e
152
+ });
153
+ }
154
+ $++;
155
+ }
156
+ }
157
+ function Le() {
158
+ {
159
+ if ($--, $ === 0) {
160
+ var e = {
161
+ configurable: !0,
162
+ enumerable: !0,
163
+ writable: !0
164
+ };
165
+ Object.defineProperties(console, {
166
+ log: P({}, e, {
167
+ value: re
168
+ }),
169
+ info: P({}, e, {
170
+ value: te
171
+ }),
172
+ warn: P({}, e, {
173
+ value: ne
174
+ }),
175
+ error: P({}, e, {
176
+ value: ae
177
+ }),
178
+ group: P({}, e, {
179
+ value: ie
180
+ }),
181
+ groupCollapsed: P({}, e, {
182
+ value: oe
183
+ }),
184
+ groupEnd: P({}, e, {
185
+ value: ue
186
+ })
187
+ });
188
+ }
189
+ $ < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
190
+ }
191
+ }
192
+ var B = F.ReactCurrentDispatcher, q;
193
+ function L(e, r, t) {
194
+ {
195
+ if (q === void 0)
196
+ try {
197
+ throw Error();
198
+ } catch (o) {
199
+ var n = o.stack.trim().match(/\n( *(at )?)/);
200
+ q = n && n[1] || "";
201
+ }
202
+ return `
203
+ ` + q + e;
204
+ }
205
+ }
206
+ var K = !1, M;
207
+ {
208
+ var Me = typeof WeakMap == "function" ? WeakMap : Map;
209
+ M = new Me();
210
+ }
211
+ function le(e, r) {
212
+ if (!e || K)
213
+ return "";
214
+ {
215
+ var t = M.get(e);
216
+ if (t !== void 0)
217
+ return t;
218
+ }
219
+ var n;
220
+ K = !0;
221
+ var o = Error.prepareStackTrace;
222
+ Error.prepareStackTrace = void 0;
223
+ var u;
224
+ u = B.current, B.current = null, Ue();
225
+ try {
226
+ if (r) {
227
+ var i = function() {
228
+ throw Error();
229
+ };
230
+ if (Object.defineProperty(i.prototype, "props", {
231
+ set: function() {
232
+ throw Error();
233
+ }
234
+ }), typeof Reflect == "object" && Reflect.construct) {
235
+ try {
236
+ Reflect.construct(i, []);
237
+ } catch (p) {
238
+ n = p;
239
+ }
240
+ Reflect.construct(e, [], i);
241
+ } else {
242
+ try {
243
+ i.call();
244
+ } catch (p) {
245
+ n = p;
246
+ }
247
+ e.call(i.prototype);
248
+ }
249
+ } else {
250
+ try {
251
+ throw Error();
252
+ } catch (p) {
253
+ n = p;
254
+ }
255
+ e();
256
+ }
257
+ } catch (p) {
258
+ if (p && n && typeof p.stack == "string") {
259
+ for (var a = p.stack.split(`
260
+ `), v = n.stack.split(`
261
+ `), l = a.length - 1, f = v.length - 1; l >= 1 && f >= 0 && a[l] !== v[f]; )
262
+ f--;
263
+ for (; l >= 1 && f >= 0; l--, f--)
264
+ if (a[l] !== v[f]) {
265
+ if (l !== 1 || f !== 1)
266
+ do
267
+ if (l--, f--, f < 0 || a[l] !== v[f]) {
268
+ var m = `
269
+ ` + a[l].replace(" at new ", " at ");
270
+ return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, m), m;
271
+ }
272
+ while (l >= 1 && f >= 0);
273
+ break;
274
+ }
275
+ }
276
+ } finally {
277
+ K = !1, B.current = u, Le(), Error.prepareStackTrace = o;
278
+ }
279
+ var I = e ? e.displayName || e.name : "", k = I ? L(I) : "";
280
+ return typeof e == "function" && M.set(e, k), k;
281
+ }
282
+ function Ve(e, r, t) {
283
+ return le(e, !1);
284
+ }
285
+ function Ne(e) {
286
+ var r = e.prototype;
287
+ return !!(r && r.isReactComponent);
288
+ }
289
+ function V(e, r, t) {
290
+ if (e == null)
291
+ return "";
292
+ if (typeof e == "function")
293
+ return le(e, Ne(e));
294
+ if (typeof e == "string")
295
+ return L(e);
296
+ switch (e) {
297
+ case R:
298
+ return L("Suspense");
299
+ case c:
300
+ return L("SuspenseList");
301
+ }
302
+ if (typeof e == "object")
303
+ switch (e.$$typeof) {
304
+ case s:
305
+ return Ve(e.render);
306
+ case _:
307
+ return V(e.type, r, t);
308
+ case S: {
309
+ var n = e, o = n._payload, u = n._init;
310
+ try {
311
+ return V(u(o), r, t);
312
+ } catch {
313
+ }
314
+ }
315
+ }
316
+ return "";
317
+ }
318
+ var W = Object.prototype.hasOwnProperty, fe = {}, ce = F.ReactDebugCurrentFrame;
319
+ function N(e) {
320
+ if (e) {
321
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
322
+ ce.setExtraStackFrame(t);
323
+ } else
324
+ ce.setExtraStackFrame(null);
325
+ }
326
+ function Je(e, r, t, n, o) {
327
+ {
328
+ var u = Function.call.bind(W);
329
+ for (var i in e)
330
+ if (u(e, i)) {
331
+ var a = void 0;
332
+ try {
333
+ if (typeof e[i] != "function") {
334
+ var v = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
335
+ throw v.name = "Invariant Violation", v;
336
+ }
337
+ a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
338
+ } catch (l) {
339
+ a = l;
340
+ }
341
+ a && !(a instanceof Error) && (N(o), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), N(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, N(o), d("Failed %s type: %s", t, a.message), N(null));
342
+ }
343
+ }
344
+ }
345
+ var Be = Array.isArray;
346
+ function z(e) {
347
+ return Be(e);
348
+ }
349
+ function qe(e) {
350
+ {
351
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
352
+ return t;
353
+ }
354
+ }
355
+ function Ke(e) {
356
+ try {
357
+ return de(e), !1;
358
+ } catch {
359
+ return !0;
360
+ }
361
+ }
362
+ function de(e) {
363
+ return "" + e;
364
+ }
365
+ function ve(e) {
366
+ if (Ke(e))
367
+ return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), de(e);
368
+ }
369
+ var pe = F.ReactCurrentOwner, ze = {
370
+ key: !0,
371
+ ref: !0,
372
+ __self: !0,
373
+ __source: !0
374
+ }, ge, ye;
375
+ function Ge(e) {
376
+ if (W.call(e, "ref")) {
377
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
378
+ if (r && r.isReactWarning)
379
+ return !1;
380
+ }
381
+ return e.ref !== void 0;
382
+ }
383
+ function Xe(e) {
384
+ if (W.call(e, "key")) {
385
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
386
+ if (r && r.isReactWarning)
387
+ return !1;
388
+ }
389
+ return e.key !== void 0;
390
+ }
391
+ function He(e, r) {
392
+ typeof e.ref == "string" && pe.current;
393
+ }
394
+ function Qe(e, r) {
395
+ {
396
+ var t = function() {
397
+ ge || (ge = !0, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
398
+ };
399
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
400
+ get: t,
401
+ configurable: !0
402
+ });
403
+ }
404
+ }
405
+ function Ze(e, r) {
406
+ {
407
+ var t = function() {
408
+ ye || (ye = !0, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
409
+ };
410
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
411
+ get: t,
412
+ configurable: !0
413
+ });
414
+ }
415
+ }
416
+ var er = function(e, r, t, n, o, u, i) {
417
+ var a = {
418
+ // This tag allows us to uniquely identify this as a React Element
419
+ $$typeof: b,
420
+ // Built-in properties that belong on the element
421
+ type: e,
422
+ key: r,
423
+ ref: t,
424
+ props: i,
425
+ // Record the component responsible for creating this element.
426
+ _owner: u
427
+ };
428
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
429
+ configurable: !1,
430
+ enumerable: !1,
431
+ writable: !0,
432
+ value: !1
433
+ }), Object.defineProperty(a, "_self", {
434
+ configurable: !1,
435
+ enumerable: !1,
436
+ writable: !1,
437
+ value: n
438
+ }), Object.defineProperty(a, "_source", {
439
+ configurable: !1,
440
+ enumerable: !1,
441
+ writable: !1,
442
+ value: o
443
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
444
+ };
445
+ function rr(e, r, t, n, o) {
446
+ {
447
+ var u, i = {}, a = null, v = null;
448
+ t !== void 0 && (ve(t), a = "" + t), Xe(r) && (ve(r.key), a = "" + r.key), Ge(r) && (v = r.ref, He(r, o));
449
+ for (u in r)
450
+ W.call(r, u) && !ze.hasOwnProperty(u) && (i[u] = r[u]);
451
+ if (e && e.defaultProps) {
452
+ var l = e.defaultProps;
453
+ for (u in l)
454
+ i[u] === void 0 && (i[u] = l[u]);
455
+ }
456
+ if (a || v) {
457
+ var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
458
+ a && Qe(i, f), v && Ze(i, f);
459
+ }
460
+ return er(e, a, v, o, n, pe.current, i);
461
+ }
462
+ }
463
+ var G = F.ReactCurrentOwner, he = F.ReactDebugCurrentFrame;
464
+ function A(e) {
465
+ if (e) {
466
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
467
+ he.setExtraStackFrame(t);
468
+ } else
469
+ he.setExtraStackFrame(null);
470
+ }
471
+ var X;
472
+ X = !1;
473
+ function H(e) {
474
+ return typeof e == "object" && e !== null && e.$$typeof === b;
475
+ }
476
+ function me() {
477
+ {
478
+ if (G.current) {
479
+ var e = j(G.current.type);
480
+ if (e)
481
+ return `
482
+
483
+ Check the render method of \`` + e + "`.";
484
+ }
485
+ return "";
486
+ }
487
+ }
488
+ function tr(e) {
489
+ return "";
490
+ }
491
+ var be = {};
492
+ function nr(e) {
493
+ {
494
+ var r = me();
495
+ if (!r) {
496
+ var t = typeof e == "string" ? e : e.displayName || e.name;
497
+ t && (r = `
498
+
499
+ Check the top-level render call using <` + t + ">.");
500
+ }
501
+ return r;
502
+ }
503
+ }
504
+ function Ee(e, r) {
505
+ {
506
+ if (!e._store || e._store.validated || e.key != null)
507
+ return;
508
+ e._store.validated = !0;
509
+ var t = nr(r);
510
+ if (be[t])
511
+ return;
512
+ be[t] = !0;
513
+ var n = "";
514
+ e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + j(e._owner.type) + "."), A(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), A(null);
515
+ }
516
+ }
517
+ function Re(e, r) {
518
+ {
519
+ if (typeof e != "object")
520
+ return;
521
+ if (z(e))
522
+ for (var t = 0; t < e.length; t++) {
523
+ var n = e[t];
524
+ H(n) && Ee(n, r);
525
+ }
526
+ else if (H(e))
527
+ e._store && (e._store.validated = !0);
528
+ else if (e) {
529
+ var o = Pe(e);
530
+ if (typeof o == "function" && o !== e.entries)
531
+ for (var u = o.call(e), i; !(i = u.next()).done; )
532
+ H(i.value) && Ee(i.value, r);
533
+ }
534
+ }
535
+ }
536
+ function ar(e) {
537
+ {
538
+ var r = e.type;
539
+ if (r == null || typeof r == "string")
540
+ return;
541
+ var t;
542
+ if (typeof r == "function")
543
+ t = r.propTypes;
544
+ else if (typeof r == "object" && (r.$$typeof === s || // Note: Memo only checks outer props here.
545
+ // Inner props are checked in the reconciler.
546
+ r.$$typeof === _))
547
+ t = r.propTypes;
548
+ else
549
+ return;
550
+ if (t) {
551
+ var n = j(r);
552
+ Je(t, e.props, "prop", n, e);
553
+ } else if (r.PropTypes !== void 0 && !X) {
554
+ X = !0;
555
+ var o = j(r);
556
+ d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
557
+ }
558
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
559
+ }
560
+ }
561
+ function ir(e) {
562
+ {
563
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
564
+ var n = r[t];
565
+ if (n !== "children" && n !== "key") {
566
+ A(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), A(null);
567
+ break;
568
+ }
569
+ }
570
+ e.ref !== null && (A(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
571
+ }
572
+ }
573
+ var _e = {};
574
+ function Te(e, r, t, n, o, u) {
575
+ {
576
+ var i = We(e);
577
+ if (!i) {
578
+ var a = "";
579
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
580
+ var v = tr();
581
+ v ? a += v : a += me();
582
+ var l;
583
+ e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof === b ? (l = "<" + (j(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
584
+ }
585
+ var f = rr(e, r, t, o, u);
586
+ if (f == null)
587
+ return f;
588
+ if (i) {
589
+ var m = r.children;
590
+ if (m !== void 0)
591
+ if (n)
592
+ if (z(m)) {
593
+ for (var I = 0; I < m.length; I++)
594
+ Re(m[I], e);
595
+ Object.freeze && Object.freeze(m);
596
+ } else
597
+ d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
598
+ else
599
+ Re(m, e);
600
+ }
601
+ if (W.call(r, "key")) {
602
+ var k = j(e), p = Object.keys(r).filter(function(cr) {
603
+ return cr !== "key";
604
+ }), Q = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
605
+ if (!_e[k + Q]) {
606
+ var fr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
607
+ d(`A props object containing a "key" prop is being spread into JSX:
608
+ let props = %s;
609
+ <%s {...props} />
610
+ React keys must be passed directly to JSX without using spread:
611
+ let props = %s;
612
+ <%s key={someKey} {...props} />`, Q, k, fr, k), _e[k + Q] = !0;
613
+ }
614
+ }
615
+ return e === g ? ir(f) : ar(f), f;
616
+ }
617
+ }
618
+ function or(e, r, t) {
619
+ return Te(e, r, t, !0);
620
+ }
621
+ function ur(e, r, t) {
622
+ return Te(e, r, t, !1);
623
+ }
624
+ var sr = ur, lr = or;
625
+ U.Fragment = g, U.jsx = sr, U.jsxs = lr;
626
+ })()), U;
627
+ }
628
+ var we;
629
+ function mr() {
630
+ return we || (we = 1, process.env.NODE_ENV === "production" ? J.exports = yr() : J.exports = hr()), J.exports;
631
+ }
632
+ var C = mr();
633
+ const _r = ({
634
+ cjType: T = "default",
635
+ children: b,
636
+ ...x
637
+ }) => {
638
+ const g = {
639
+ primary: "primary",
640
+ success: "primary",
641
+ warning: "default",
642
+ danger: "primary",
643
+ default: "default"
644
+ }, y = T === "danger";
645
+ return /* @__PURE__ */ C.jsx(Se, { type: g[T], danger: y, ...x, children: b });
646
+ };
647
+ function Tr({
648
+ columns: T,
649
+ data: b,
650
+ loading: x = !1,
651
+ rowSelection: g = !1,
652
+ pagination: y = !1,
653
+ total: w = 0,
654
+ current: O = 1,
655
+ pageSize: E = 10,
656
+ onPageChange: s,
657
+ onSelectionChange: R,
658
+ ...c
659
+ }) {
660
+ const _ = T.map((h) => ({
661
+ key: h.key || h.dataIndex,
662
+ dataIndex: h.dataIndex,
663
+ title: h.title,
664
+ width: h.width,
665
+ fixed: h.fixed,
666
+ render: h.render
667
+ })), S = g ? {
668
+ type: "checkbox",
669
+ onChange: R
670
+ } : void 0, D = y ? {
671
+ total: w,
672
+ current: O,
673
+ pageSize: E,
674
+ showSizeChanger: !0,
675
+ showQuickJumper: !0,
676
+ showTotal: (h) => `共 ${h} 条`,
677
+ onChange: s
678
+ } : !1;
679
+ return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
680
+ /* @__PURE__ */ C.jsx(
681
+ dr,
682
+ {
683
+ columns: _,
684
+ dataSource: b,
685
+ loading: x,
686
+ rowSelection: S,
687
+ pagination: !1,
688
+ rowKey: "id",
689
+ ...c
690
+ }
691
+ ),
692
+ y && /* @__PURE__ */ C.jsx("div", { style: { marginTop: 16, display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ C.jsx(vr, { ...D }) })
693
+ ] });
694
+ }
695
+ const Cr = ({
696
+ buttonText: T = "点击上传",
697
+ buttonType: b = "primary",
698
+ showIcon: x = !0,
699
+ tip: g,
700
+ onSuccess: y,
701
+ onError: w,
702
+ ...O
703
+ }) => {
704
+ const E = {
705
+ ...O,
706
+ onChange(s) {
707
+ const { status: R, response: c } = s.file;
708
+ R === "done" && y ? y(c, s.file) : R === "error" && w && w(s.file.error, s.file);
709
+ }
710
+ };
711
+ return /* @__PURE__ */ C.jsxs(pr, { ...E, children: [
712
+ /* @__PURE__ */ C.jsx(Se, { type: b, icon: x ? /* @__PURE__ */ C.jsx(gr, {}) : void 0, children: T }),
713
+ g && /* @__PURE__ */ C.jsx("div", { style: { marginTop: 8, color: "#999", fontSize: 12 }, children: g })
714
+ ] });
715
+ };
716
+ export {
717
+ _r as CjButton,
718
+ Tr as CjTable,
719
+ Cr as CjUpload
720
+ };
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@cj-design/react",
3
+ "version": "1.0.0",
4
+ "description": "React components based on Ant Design",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.cjs",
13
+ "types": "./dist/index.d.ts"
14
+ },
15
+ "./dist/style.css": "./dist/style.css"
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "peerDependencies": {
21
+ "@ant-design/icons": "^5.0.0",
22
+ "antd": "^5.0.0",
23
+ "react": "^18.0.0",
24
+ "react-dom": "^18.0.0"
25
+ },
26
+ "devDependencies": {
27
+ "@ant-design/icons": "^6.1.0",
28
+ "@types/react": "^18.2.0",
29
+ "@types/react-dom": "^18.2.0",
30
+ "@vitejs/plugin-react": "^4.2.0",
31
+ "antd": "^5.15.0",
32
+ "react": "^18.2.0",
33
+ "react-dom": "^18.2.0",
34
+ "typescript": "^5.9.0",
35
+ "vite": "^6.0.0",
36
+ "vite-plugin-dts": "^4.0.0"
37
+ },
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "scripts": {
42
+ "build": "vite build && tsc --declaration --emitDeclarationOnly",
43
+ "dev": "vite build --watch"
44
+ }
45
+ }