@para-ui/core 4.0.48 → 4.0.49

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/Upload/index.js CHANGED
@@ -6,7 +6,7 @@ import clsx from 'clsx';
6
6
  import UploadIcon from '@para-ui/icons/UploadFile';
7
7
  import LoadingIcon from '@para-ui/icons/Loading';
8
8
  import { _ as _toConsumableArray } from '../_verture/toConsumableArray-c7a8028f.js';
9
- import { _ as _typeof } from '../_verture/defineProperty-f0e15205.js';
9
+ import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
10
10
  import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
11
11
  import { r as regenerator } from '../_verture/index-8ac46bd9.js';
12
12
  import EditOutline from '@para-ui/icons/EditOutline';
@@ -36,8 +36,9 @@ import { Modal } from '../Modal/index.js';
36
36
  import '../_verture/typeof-6ec38efd.js';
37
37
  import 'rc-tooltip';
38
38
  import 'rc-tooltip/lib/placements';
39
- import '../_verture/Portal-42560ff0.js';
39
+ import '../_verture/Portal-f9bedb3a.js';
40
40
  import 'react-dom';
41
+ import '../_verture/defineProperty-6f62bb2a.js';
41
42
  import 'rc-dialog';
42
43
  import 'rc-motion';
43
44
  import '@para-ui/icons/Sort';
@@ -1663,7 +1664,7 @@ var ImgCrop = /*#__PURE__*/forwardRef(function (props, ref) {
1663
1664
  });
1664
1665
  });
1665
1666
 
1666
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/11 下午1:40\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-upload .component-upload {\n position: relative;\n display: inline-block;\n}\n.paraui-v4-upload-loading {\n pointer-events: none;\n}\n.paraui-v4-upload-drag {\n position: relative;\n}\n.paraui-v4-upload-drag-loading {\n pointer-events: none;\n}\n.paraui-v4-upload-drag-hover .upload-drag-container {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-upload-drag .upload-drag-container {\n display: inline-flex;\n width: 100%;\n height: 200px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n line-height: 1;\n border: 1px dashed rgb(212, 218, 227);\n background-color: rgb(247, 248, 250);\n border-radius: 4px;\n cursor: pointer;\n transition: 0.3s;\n}\n.paraui-v4-upload-drag .upload-drag-container:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-upload-drag .upload-drag-container:hover .upload-drag-text {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-icon {\n line-height: 0;\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-icon svg {\n font-size: 48px;\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-icon .upload-drag-loading {\n animation: uploadLoadingCircle 1s infinite linear;\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-text {\n margin: 16px 0 10px 0;\n color: rgb(29, 33, 38);\n padding: 0 20px;\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-text-loading {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-text-filename {\n margin-right: 5px;\n color: rgb(29, 33, 38);\n word-break: break-all;\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-hint {\n color: rgb(92, 101, 115);\n padding: 0 20px;\n text-align: center;\n white-space: pre-wrap;\n line-height: 21px;\n}\n.paraui-v4-upload-drag .component-upload {\n display: block;\n max-width: 590px;\n}\n.paraui-v4-upload-drag .component-upload-disabled {\n color: rgb(92, 101, 115);\n cursor: not-allowed;\n}\n.paraui-v4-upload-drag .component-upload-disabled > div {\n width: 100%;\n}\n.paraui-v4-upload-drag .component-upload-disabled .upload-drag-container {\n cursor: not-allowed;\n}\n.paraui-v4-upload-drag .component-upload-disabled .upload-drag-container:hover {\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-upload-drag .component-upload-disabled .upload-drag-container .upload-drag-icon svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-upload-drag .component-upload-disabled .upload-drag-container .upload-drag-text {\n color: rgb(92, 101, 115);\n}\n@keyframes uploadLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}";
1667
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/11 下午1:40\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-upload .component-upload {\n position: relative;\n display: inline-block;\n}\n.paraui-v4-upload-loading {\n pointer-events: none;\n}\n.paraui-v4-upload-drag {\n position: relative;\n}\n.paraui-v4-upload-drag-loading {\n pointer-events: none;\n}\n.paraui-v4-upload-drag-hover .upload-drag-container {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-upload-drag .upload-drag-container {\n display: inline-flex;\n width: 100%;\n height: 200px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n line-height: 1;\n border: 1px dashed rgb(212, 218, 227);\n background-color: rgb(247, 248, 250);\n border-radius: 4px;\n cursor: pointer;\n transition: 0.3s;\n}\n.paraui-v4-upload-drag .upload-drag-container:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-upload-drag .upload-drag-container:hover .upload-drag-text {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-icon {\n line-height: 0;\n margin-bottom: 16px;\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-icon svg {\n font-size: 48px;\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-icon .upload-drag-loading {\n animation: uploadLoadingCircle 1s infinite linear;\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-text {\n margin: 0 0 10px 0;\n color: rgb(29, 33, 38);\n padding: 0 20px;\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-text-loading {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-text-filename {\n margin-right: 5px;\n color: rgb(29, 33, 38);\n word-break: break-all;\n}\n.paraui-v4-upload-drag .upload-drag-container .upload-drag-hint {\n color: rgb(92, 101, 115);\n padding: 0 20px;\n text-align: center;\n white-space: pre-wrap;\n line-height: 21px;\n}\n.paraui-v4-upload-drag .component-upload {\n display: block;\n max-width: 590px;\n}\n.paraui-v4-upload-drag .component-upload-disabled {\n color: rgb(92, 101, 115);\n cursor: not-allowed;\n}\n.paraui-v4-upload-drag .component-upload-disabled > div {\n width: 100%;\n}\n.paraui-v4-upload-drag .component-upload-disabled .upload-drag-container {\n cursor: not-allowed;\n}\n.paraui-v4-upload-drag .component-upload-disabled .upload-drag-container:hover {\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-upload-drag .component-upload-disabled .upload-drag-container .upload-drag-icon svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-upload-drag .component-upload-disabled .upload-drag-container .upload-drag-text {\n color: rgb(92, 101, 115);\n}\n@keyframes uploadLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}";
1667
1668
  styleInject(css_248z);
1668
1669
 
1669
1670
  //upload
@@ -1698,9 +1699,10 @@ const InternalUpload = props => {
1698
1699
  actionRender,
1699
1700
  onPreview,
1700
1701
  removeErrorTip,
1701
- defaultFile
1702
+ defaultFile,
1703
+ height
1702
1704
  } = props,
1703
- restProps = __rest(props, ["type", "className", "style", "onStart", "onSuccess", "onError", "onProgress", "onRemove", "beforeUpload", "onChange", "onDrop", "defaultFileList", "fileList", "showUploadList", "maxCount", "children", "itemRender", "showUploadError", "size", "stash", "uploading", "showLoading", "loading", "dragArea", "disabledTooltip", "operateBtnProps", "actionRender", "onPreview", "removeErrorTip", "defaultFile"]);
1705
+ restProps = __rest(props, ["type", "className", "style", "onStart", "onSuccess", "onError", "onProgress", "onRemove", "beforeUpload", "onChange", "onDrop", "defaultFileList", "fileList", "showUploadList", "maxCount", "children", "itemRender", "showUploadError", "size", "stash", "uploading", "showLoading", "loading", "dragArea", "disabledTooltip", "operateBtnProps", "actionRender", "onPreview", "removeErrorTip", "defaultFile", "height"]);
1704
1706
  const intl = useFormatMessage('Upload', localeJson);
1705
1707
  const [uploadFileList, setUploadFileList] = useState(composeDefaultFileList(defaultFileList, defaultFile)); //文件列表
1706
1708
  const [showLoading, setShowLoading] = useState(false); //upload loading
@@ -1909,6 +1911,9 @@ const InternalUpload = props => {
1909
1911
  areaText = text,
1910
1912
  areaDesc = hint
1911
1913
  } = dragArea !== null && dragArea !== void 0 ? dragArea : {};
1914
+ console.log('areaIcon', areaIcon);
1915
+ console.log('areaText', areaText);
1916
+ console.log('areaDesc', areaDesc);
1912
1917
  if (showLoading) {
1913
1918
  areaIcon = jsx(LoadingIcon, {
1914
1919
  className: 'upload-drag-loading'
@@ -1927,15 +1932,15 @@ const InternalUpload = props => {
1927
1932
  }
1928
1933
  const dragNode = jsx(Fragment, {
1929
1934
  children: children ? children : jsxs(Fragment, {
1930
- children: [jsx("p", Object.assign({
1935
+ children: [areaIcon && jsx("p", Object.assign({
1931
1936
  className: "upload-drag-icon"
1932
1937
  }, {
1933
1938
  children: areaIcon
1934
- })), jsx("p", Object.assign({
1939
+ })), areaText && jsx("p", Object.assign({
1935
1940
  className: 'upload-drag-text'
1936
1941
  }, {
1937
1942
  children: areaText
1938
- })), !showLoading && jsx("p", Object.assign({
1943
+ })), !showLoading && areaDesc && jsx("p", Object.assign({
1939
1944
  className: "upload-drag-hint"
1940
1945
  }, {
1941
1946
  children: areaDesc
@@ -1948,12 +1953,18 @@ const InternalUpload = props => {
1948
1953
  disabled: true
1949
1954
  }, {
1950
1955
  children: jsx("div", Object.assign({
1956
+ style: {
1957
+ height
1958
+ },
1951
1959
  className: 'upload-drag-container'
1952
1960
  }, {
1953
1961
  children: dragNode
1954
1962
  }))
1955
1963
  }));
1956
1964
  return jsx("div", Object.assign({
1965
+ style: {
1966
+ height
1967
+ },
1957
1968
  className: 'upload-drag-container'
1958
1969
  }, {
1959
1970
  children: dragNode
@@ -167,6 +167,8 @@ export interface UploadProps<T = any> {
167
167
  removeErrorTip?: boolean;
168
168
  /** 默认文件 */
169
169
  defaultFile?: UploadFile<T>;
170
+ /** 上传高度 */
171
+ height?: number | string;
170
172
  }
171
173
  interface IActions {
172
174
  onRemove: () => void;
@@ -1,8 +1,9 @@
1
1
  import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
2
2
  import * as React from 'react';
3
3
  import { createPortal } from 'react-dom';
4
- import { a as _defineProperty, _ as _typeof } from './defineProperty-f0e15205.js';
4
+ import { _ as _typeof } from './typeof-adeedc13.js';
5
5
  import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
6
+ import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
6
7
 
7
8
  function _extends() {
8
9
  _extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -1,12 +1,4 @@
1
- function _typeof(o) {
2
- "@babel/helpers - typeof";
3
-
4
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
- return typeof o;
6
- } : function (o) {
7
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
- }, _typeof(o);
9
- }
1
+ import { _ as _typeof } from './typeof-adeedc13.js';
10
2
 
11
3
  function toPrimitive(t, r) {
12
4
  if ("object" != _typeof(t) || !t) return t;
@@ -39,4 +31,4 @@ function _defineProperty(obj, key, value) {
39
31
  return obj;
40
32
  }
41
33
 
42
- export { _typeof as _, _defineProperty as a, toPropertyKey as t };
34
+ export { _defineProperty as _, toPropertyKey as t };
@@ -1,5 +1,5 @@
1
1
  import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
2
- import { _ as _typeof, a as _defineProperty } from './defineProperty-f0e15205.js';
2
+ import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
3
3
  import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
4
4
  import { r as regenerator } from './index-8ac46bd9.js';
5
5
  import { _ as __rest, a as __awaiter } from './tslib.es6-55ed4bd2.js';
@@ -7,6 +7,7 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
7
7
  import React__default, { isValidElement, cloneElement, useRef, useState, useImperativeHandle, useEffect, useMemo } from 'react';
8
8
  import RcTree from 'rc-tree';
9
9
  import clsx from 'clsx';
10
+ import { _ as _typeof } from './typeof-adeedc13.js';
10
11
  import LoadingOutlined from '@para-ui/icons/LoadingF';
11
12
  import FileOutlined from '@para-ui/icons/Document';
12
13
  import SolidArrowDown from '@para-ui/icons/DownTriangleF';
@@ -1,9 +1,10 @@
1
1
  import { _ as __rest } from './tslib.es6-55ed4bd2.js';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
- import { c as clsx, _ as _objectSpread2, r as reactIs, s as supportRef, u as useComposeRef, w as warning, a as _extends, b as _objectWithoutProperties, d as wrapperRaf, e as useEvent$2, f as useLayoutEffect$3, g as composeRef, K as KeyCode, h as fillRef, P as Portal, i as warningOnce, j as useMergedState$2, k as canUseDom$1, l as useMemo$1, n as noteOnce } from './Portal-42560ff0.js';
3
+ import { c as clsx, _ as _objectSpread2, r as reactIs, s as supportRef, u as useComposeRef, w as warning, a as _extends, b as _objectWithoutProperties, d as wrapperRaf, e as useEvent$2, f as useLayoutEffect$3, g as composeRef, K as KeyCode, h as fillRef, P as Portal, i as warningOnce, j as useMergedState$2, k as canUseDom$1, l as useMemo$1, n as noteOnce } from './Portal-f9bedb3a.js';
4
4
  import { _ as _toConsumableArray, a as _iterableToArray } from './toConsumableArray-c7a8028f.js';
5
- import { _ as _typeof$1, t as toPropertyKey, a as _defineProperty } from './defineProperty-f0e15205.js';
5
+ import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-6f62bb2a.js';
6
6
  import { _ as _slicedToArray, a as _arrayWithHoles, b as _unsupportedIterableToArray, c as _nonIterableRest } from './slicedToArray-75fa4188.js';
7
+ import { _ as _typeof$1 } from './typeof-adeedc13.js';
7
8
  import * as React$4 from 'react';
8
9
  import React__default, { useState as useState$1, useMemo, useCallback, useRef, useEffect } from 'react';
9
10
  import ReactDOM, { unstable_batchedUpdates, flushSync } from 'react-dom';
@@ -0,0 +1,11 @@
1
+ function _typeof(o) {
2
+ "@babel/helpers - typeof";
3
+
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
+ return typeof o;
6
+ } : function (o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ export { _typeof as _ };
package/index.js CHANGED
@@ -10,7 +10,7 @@ export { Button } from './Button/index.js';
10
10
  export { ButtonGroup } from './ButtonGroup/index.js';
11
11
  export { Card } from './Card/index.js';
12
12
  export { Carousel } from './Carousel/index.js';
13
- export { C as Cascader } from './_verture/index-063009f8.js';
13
+ export { C as Cascader } from './_verture/index-972707a5.js';
14
14
  export { Checkbox } from './Checkbox/index.js';
15
15
  export { CheckboxGroup } from './CheckboxGroup/index.js';
16
16
  export { default as CodeEditor, CompletionItemKind } from './CodeEditor/index.js';
@@ -32,7 +32,7 @@ export { D as Dropdown } from './_verture/index-bde7aabe.js';
32
32
  export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
33
33
  export { default as Empty } from './Empty/index.js';
34
34
  export { default as Form } from './Form/index.js';
35
- export { F as FormItem } from './_verture/index-caffc0da.js';
35
+ export { F as FormItem } from './_verture/index-73a0446f.js';
36
36
  export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-8a48c400.js';
37
37
  export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
38
38
  export { default as Help } from './Help/index.js';
@@ -87,7 +87,7 @@ export { Title } from './Title/index.js';
87
87
  export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
88
88
  export { Tooltip } from './Tooltip/index.js';
89
89
  export { SSortablejs, Transfer } from './Transfer/index.js';
90
- export { T as Tree } from './_verture/index-72981a9e.js';
90
+ export { T as Tree } from './_verture/index-6647cbf6.js';
91
91
  export { default as Upload } from './Upload/index.js';
92
92
  export { default as Utils, getDateYYYYMMddHHMM, isObject, pixelReplacement } from './Utils/index.js';
93
93
  export { default as locale } from './locale/index.js';
@@ -114,10 +114,11 @@ import '@para-ui/icons/LoadingF';
114
114
  import 'react-slick';
115
115
  import '@para-ui/icons/RightCircleF';
116
116
  import '@para-ui/icons/LeftCircleF';
117
- import './_verture/Portal-42560ff0.js';
117
+ import './_verture/Portal-f9bedb3a.js';
118
118
  import './_verture/slicedToArray-75fa4188.js';
119
- import './_verture/defineProperty-f0e15205.js';
119
+ import './_verture/typeof-adeedc13.js';
120
120
  import './_verture/toConsumableArray-c7a8028f.js';
121
+ import './_verture/defineProperty-6f62bb2a.js';
121
122
  import 'rc-motion';
122
123
  import './_verture/typeof-6ec38efd.js';
123
124
  import 'rc-tree/lib/utils/conductUtil';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@para-ui/core",
3
3
  "private": false,
4
- "version": "4.0.48",
4
+ "version": "4.0.49",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
7
7
  "description": "Powered by Para FED",