@teamias/rex-pro 0.0.12 → 0.0.13

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.
@@ -2,3 +2,5 @@ export * from './card-basic-info';
2
2
  export * from './filter-form';
3
3
  export * from './rex-pro-form';
4
4
  export * from './rex-pro-table';
5
+ export * from './rex-pro-input';
6
+ export * from './rex-pro-upload';
@@ -2,4 +2,6 @@
2
2
  export * from "./card-basic-info";
3
3
  export * from "./filter-form";
4
4
  export * from "./rex-pro-form";
5
- export * from "./rex-pro-table";
5
+ export * from "./rex-pro-table";
6
+ export * from "./rex-pro-input";
7
+ export * from "./rex-pro-upload";
@@ -0,0 +1,2 @@
1
+ export { RexProInput } from './v1/rex-pro-input';
2
+ export type { RexProInputProps } from './v1/rex-pro-input';
@@ -0,0 +1 @@
1
+ export { RexProInput } from "./v1/rex-pro-input";
@@ -0,0 +1,2 @@
1
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { RexProInput } from "../rex-pro-input";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ export default (function () {
4
+ return /*#__PURE__*/_jsx(RexProInput, {
5
+ placeholder: "\u6587\u672C\u57DF\u8F93\u5165\u6846"
6
+ });
7
+ });
@@ -0,0 +1,3 @@
1
+ import { BigInputProps } from '@teamias/rex-design';
2
+ export type RexProInputProps = BigInputProps;
3
+ export declare const RexProInput: (props: RexProInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import React from 'react';
8
+ import { BigInput } from '@teamias/rex-design';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ export var RexProInput = function RexProInput(props) {
11
+ return /*#__PURE__*/_jsx(BigInput, _objectSpread({}, props));
12
+ };
@@ -0,0 +1,2 @@
1
+ export { RexProUpload } from './v1/rex-pro-upload';
2
+ export type { RexProUploadProps } from './v1/rex-pro-upload';
@@ -0,0 +1 @@
1
+ export { RexProUpload } from "./v1/rex-pro-upload";
@@ -0,0 +1,2 @@
1
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,31 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { message } from 'antd';
8
+ import { RexProUpload } from "../rex-pro-upload";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ export default (function () {
11
+ var props = {
12
+ name: 'file',
13
+ multiple: true,
14
+ action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76',
15
+ onChange: function onChange(info) {
16
+ var status = info.file.status;
17
+ if (status !== 'uploading') {
18
+ console.log(info.file, info.fileList);
19
+ }
20
+ if (status === 'done') {
21
+ message.success("".concat(info.file.name, " file uploaded successfully."));
22
+ } else if (status === 'error') {
23
+ message.error("".concat(info.file.name, " file upload failed."));
24
+ }
25
+ },
26
+ onDrop: function onDrop(e) {
27
+ console.log('Dropped files', e.dataTransfer.files);
28
+ }
29
+ };
30
+ return /*#__PURE__*/_jsx(RexProUpload, _objectSpread({}, props));
31
+ });
@@ -0,0 +1,3 @@
1
+ import { UploadPlusProps } from '@teamias/rex-design';
2
+ export type RexProUploadProps = UploadPlusProps;
3
+ export declare const RexProUpload: (props: RexProUploadProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import React from 'react';
8
+ import { UploadPlus } from '@teamias/rex-design';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ export var RexProUpload = function RexProUpload(props) {
11
+ return /*#__PURE__*/_jsx(UploadPlus, _objectSpread({}, props));
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamias/rex-pro",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -51,7 +51,7 @@
51
51
  "dependencies": {
52
52
  "@ant-design/icons": "^6.0.0",
53
53
  "@ant-design/pro-components": "^2.8.10",
54
- "@teamias/rex-design": "^0.0.20",
54
+ "@teamias/rex-design": "^0.0.24",
55
55
  "ahooks": "^3.9.0",
56
56
  "antd": "^5.26.7",
57
57
  "classnames": "^2.5.1",