assui 3.2.52 → 3.2.54

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.
@@ -168,7 +168,7 @@ import classNames from 'classnames';
168
168
  import CloseOutlined from "a-icons/es/CloseOutlined";
169
169
  import isObject from 'lodash/isObject';
170
170
  import isFunction from 'lodash/isFunction';
171
- import { ReactComponent as PDFSVG } from './assets/pdf.svg';
171
+ var pdfpng = "pdf.png";
172
172
  var getLocalImgURL = function getLocalImgURL(file) {
173
173
  var URL = window.URL || window.webkitURL;
174
174
  var imgURL = URL.createObjectURL(file);
@@ -321,7 +321,9 @@ var SingleImgUpload = function SingleImgUpload(props) {
321
321
  onClick: function onClick() {
322
322
  return window.open(fileUrl || value, '_blank');
323
323
  }
324
- }, /*#__PURE__*/React.createElement(PDFSVG, null));
324
+ }, /*#__PURE__*/React.createElement("img", {
325
+ src: pdfpng
326
+ }));
325
327
  };
326
328
  return /*#__PURE__*/React.createElement("div", {
327
329
  className: cls
@@ -1275,6 +1275,10 @@ html {
1275
1275
  justify-content: center;
1276
1276
  cursor: pointer;
1277
1277
  }
1278
+ .as-img-upload .as-img-upload-pdf-preview img {
1279
+ width: 40px;
1280
+ height: 40px;
1281
+ }
1278
1282
  .as-img-upload-close-button {
1279
1283
  position: absolute;
1280
1284
  top: 0;
@@ -48,6 +48,11 @@
48
48
  align-items: center;
49
49
  justify-content: center;
50
50
  cursor: pointer;
51
+
52
+ img {
53
+ width: 40px;
54
+ height: 40px;
55
+ }
51
56
  }
52
57
 
53
58
  &-close-button {
@@ -209,7 +209,7 @@ var classnames_1 = __importDefault(require("classnames"));
209
209
  var CloseOutlined_1 = __importDefault(require("a-icons/lib/CloseOutlined"));
210
210
  var isObject_1 = __importDefault(require("lodash/isObject"));
211
211
  var isFunction_1 = __importDefault(require("lodash/isFunction"));
212
- var pdf_svg_1 = require("./assets/pdf.svg");
212
+ var pdf_png_1 = __importDefault("pdf.png");
213
213
  var getLocalImgURL = function getLocalImgURL(file) {
214
214
  var URL = window.URL || window.webkitURL;
215
215
  var imgURL = URL.createObjectURL(file);
@@ -362,7 +362,9 @@ var SingleImgUpload = function SingleImgUpload(props) {
362
362
  onClick: function onClick() {
363
363
  return window.open(fileUrl || value, '_blank');
364
364
  }
365
- }, React.createElement(pdf_svg_1.ReactComponent, null));
365
+ }, React.createElement("img", {
366
+ src: pdf_png_1["default"]
367
+ }));
366
368
  };
367
369
  return React.createElement("div", {
368
370
  className: cls
@@ -1275,6 +1275,10 @@ html {
1275
1275
  justify-content: center;
1276
1276
  cursor: pointer;
1277
1277
  }
1278
+ .as-img-upload .as-img-upload-pdf-preview img {
1279
+ width: 40px;
1280
+ height: 40px;
1281
+ }
1278
1282
  .as-img-upload-close-button {
1279
1283
  position: absolute;
1280
1284
  top: 0;
@@ -48,6 +48,11 @@
48
48
  align-items: center;
49
49
  justify-content: center;
50
50
  cursor: pointer;
51
+
52
+ img {
53
+ width: 40px;
54
+ height: 40px;
55
+ }
51
56
  }
52
57
 
53
58
  &-close-button {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.2.52",
3
+ "version": "3.2.54",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -86,5 +86,5 @@
86
86
  "node": ">=10.0.0"
87
87
  },
88
88
  "license": "MIT",
89
- "gitHead": "ba9acb7a403c5c4ed93d7092b8a86c865c9cc1ed"
89
+ "gitHead": "1462db860e1f4eb758033d5cafe589ed4f086f90"
90
90
  }
@@ -1,16 +0,0 @@
1
- <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_23648_109766)">
3
- <path d="M35.2197 36.2002C35.2197 36.7002 35.0195 37.1802 34.6597 37.54C34.2993 37.8999 33.8198 38.1001 33.3193 38.1001H6.65967C6.15967 38.1001 5.65967 37.8999 5.31982 37.54C4.95996 37.1797 4.75977 36.7002 4.75977 36.2002V1.8999C4.75977 1.3999 4.95947 0.899902 5.31982 0.560059C5.65967 0.200195 6.16016 0 6.65967 0H23.02C23.52 0 24.02 0.200195 24.3799 0.560059L34.6797 10.8604C35.0396 11.2202 35.2397 11.7002 35.2397 12.2202V36.2002H35.2197Z" fill="#EBECF0"/>
4
- <path d="M35.2197 36.2002V38.1001C35.2197 38.6001 35.0195 39.1001 34.6597 39.4399C34.2993 39.8003 33.8198 40 33.3193 40H6.65967C5.59961 40 4.75977 39.1401 4.75977 38.1001V36.2002C4.75977 36.7002 4.95947 37.1802 5.31982 37.54C5.67969 37.8999 6.15967 38.1001 6.65967 38.1001H33.3198C34.3799 38.1001 35.2197 37.2402 35.2197 36.2002Z" fill="#C1C7D0"/>
5
- <path d="M4.75928 20.96V17.1396L0.939453 20.96H4.75928ZM35.2192 20.96L35.2593 17.1396L39.0591 20.96H35.2192Z" fill="#D30000"/>
6
- <path d="M35.2197 12.2202V12.48H24.9194C23.8594 12.48 23.0195 11.6201 23.0195 10.5801V0C23.5195 0 24.0195 0.200195 24.3794 0.560059L34.6997 10.8604C35.0395 11.2202 35.2397 11.7002 35.2197 12.2202Z" fill="#C1C7D0"/>
7
- <path d="M19.645 23.8716H18.0781V29.457H19.6172C21.3652 29.457 22.3101 28.4722 22.3101 26.5723C22.3101 24.9189 21.4458 23.8936 19.645 23.8716ZM10.7397 23.8745H8.49805V26.248H10.7397C11.6582 26.248 12.2388 25.9331 12.2388 25.0454C12.2388 24.3218 11.7939 23.8745 10.7397 23.8745Z" fill="#FF1D1D"/>
8
- <path d="M0.960938 20.96V30.46C0.960938 30.98 1.16064 31.46 1.521 31.8198C1.86084 32.1802 2.36084 32.3799 2.86084 32.3799H37.1411C38.1812 32.3799 39.041 31.54 39.041 30.48V20.96H0.960938ZM10.9092 27.9316H8.49951V31.1377H6.31982V22.2021H10.9434C13.021 22.2021 14.4023 23.2524 14.4023 25.0107C14.4023 26.769 13.1011 27.9316 10.9092 27.9316ZM19.9043 31.1377H15.9111V22.2021H19.9502C22.9609 22.2021 24.6084 24.1562 24.6084 26.5137C24.6084 29.374 22.5049 31.1377 19.9043 31.1377ZM33.7456 23.9272H28.5605V25.9595H33.397V27.6973H28.5605V31.1372H26.3921V22.2017H33.7456V23.9268V23.9272Z" fill="#FF1D1D"/>
9
- <path d="M10.9414 22.2021H6.31836V31.1377H8.49805V27.9316H10.9077C13.0996 27.9316 14.4009 26.8379 14.4009 25.0107C14.4009 23.1836 13.0195 22.2021 10.9419 22.2021H10.9414ZM10.7393 26.248H8.49756V23.8745H10.7393C11.7935 23.8745 12.2383 24.3218 12.2383 25.0454C12.2383 25.9326 11.6572 26.248 10.7393 26.248ZM19.9487 22.2021H15.9097V31.1377H19.9028C22.5034 31.1377 24.6069 29.374 24.6069 26.5137C24.6069 24.1562 22.96 22.2021 19.9487 22.2021ZM19.6167 29.457H18.0776V23.8716H19.6445C21.4448 23.894 22.3096 24.9194 22.3096 26.5723C22.3096 28.4722 21.3647 29.457 19.6167 29.457ZM26.3906 31.1377H28.5591V27.6978H33.3955V25.96H28.5591V23.9277H33.7441V22.2021H26.3906V31.1377Z" fill="white"/>
10
- </g>
11
- <defs>
12
- <clipPath id="clip0_23648_109766">
13
- <rect width="40" height="40" fill="white"/>
14
- </clipPath>
15
- </defs>
16
- </svg>
@@ -1,16 +0,0 @@
1
- <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_23648_109766)">
3
- <path d="M35.2197 36.2002C35.2197 36.7002 35.0195 37.1802 34.6597 37.54C34.2993 37.8999 33.8198 38.1001 33.3193 38.1001H6.65967C6.15967 38.1001 5.65967 37.8999 5.31982 37.54C4.95996 37.1797 4.75977 36.7002 4.75977 36.2002V1.8999C4.75977 1.3999 4.95947 0.899902 5.31982 0.560059C5.65967 0.200195 6.16016 0 6.65967 0H23.02C23.52 0 24.02 0.200195 24.3799 0.560059L34.6797 10.8604C35.0396 11.2202 35.2397 11.7002 35.2397 12.2202V36.2002H35.2197Z" fill="#EBECF0"/>
4
- <path d="M35.2197 36.2002V38.1001C35.2197 38.6001 35.0195 39.1001 34.6597 39.4399C34.2993 39.8003 33.8198 40 33.3193 40H6.65967C5.59961 40 4.75977 39.1401 4.75977 38.1001V36.2002C4.75977 36.7002 4.95947 37.1802 5.31982 37.54C5.67969 37.8999 6.15967 38.1001 6.65967 38.1001H33.3198C34.3799 38.1001 35.2197 37.2402 35.2197 36.2002Z" fill="#C1C7D0"/>
5
- <path d="M4.75928 20.96V17.1396L0.939453 20.96H4.75928ZM35.2192 20.96L35.2593 17.1396L39.0591 20.96H35.2192Z" fill="#D30000"/>
6
- <path d="M35.2197 12.2202V12.48H24.9194C23.8594 12.48 23.0195 11.6201 23.0195 10.5801V0C23.5195 0 24.0195 0.200195 24.3794 0.560059L34.6997 10.8604C35.0395 11.2202 35.2397 11.7002 35.2197 12.2202Z" fill="#C1C7D0"/>
7
- <path d="M19.645 23.8716H18.0781V29.457H19.6172C21.3652 29.457 22.3101 28.4722 22.3101 26.5723C22.3101 24.9189 21.4458 23.8936 19.645 23.8716ZM10.7397 23.8745H8.49805V26.248H10.7397C11.6582 26.248 12.2388 25.9331 12.2388 25.0454C12.2388 24.3218 11.7939 23.8745 10.7397 23.8745Z" fill="#FF1D1D"/>
8
- <path d="M0.960938 20.96V30.46C0.960938 30.98 1.16064 31.46 1.521 31.8198C1.86084 32.1802 2.36084 32.3799 2.86084 32.3799H37.1411C38.1812 32.3799 39.041 31.54 39.041 30.48V20.96H0.960938ZM10.9092 27.9316H8.49951V31.1377H6.31982V22.2021H10.9434C13.021 22.2021 14.4023 23.2524 14.4023 25.0107C14.4023 26.769 13.1011 27.9316 10.9092 27.9316ZM19.9043 31.1377H15.9111V22.2021H19.9502C22.9609 22.2021 24.6084 24.1562 24.6084 26.5137C24.6084 29.374 22.5049 31.1377 19.9043 31.1377ZM33.7456 23.9272H28.5605V25.9595H33.397V27.6973H28.5605V31.1372H26.3921V22.2017H33.7456V23.9268V23.9272Z" fill="#FF1D1D"/>
9
- <path d="M10.9414 22.2021H6.31836V31.1377H8.49805V27.9316H10.9077C13.0996 27.9316 14.4009 26.8379 14.4009 25.0107C14.4009 23.1836 13.0195 22.2021 10.9419 22.2021H10.9414ZM10.7393 26.248H8.49756V23.8745H10.7393C11.7935 23.8745 12.2383 24.3218 12.2383 25.0454C12.2383 25.9326 11.6572 26.248 10.7393 26.248ZM19.9487 22.2021H15.9097V31.1377H19.9028C22.5034 31.1377 24.6069 29.374 24.6069 26.5137C24.6069 24.1562 22.96 22.2021 19.9487 22.2021ZM19.6167 29.457H18.0776V23.8716H19.6445C21.4448 23.894 22.3096 24.9194 22.3096 26.5723C22.3096 28.4722 21.3647 29.457 19.6167 29.457ZM26.3906 31.1377H28.5591V27.6978H33.3955V25.96H28.5591V23.9277H33.7441V22.2021H26.3906V31.1377Z" fill="white"/>
10
- </g>
11
- <defs>
12
- <clipPath id="clip0_23648_109766">
13
- <rect width="40" height="40" fill="white"/>
14
- </clipPath>
15
- </defs>
16
- </svg>