@sendoutcards/quantum-design-ui 1.7.41 → 1.7.42

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.es.js CHANGED
@@ -21373,11 +21373,13 @@ var ImageUploadWidget = function (_a) {
21373
21373
  hasMore = _a.hasMore,
21374
21374
  loadMore = _a.loadMore,
21375
21375
  endMessage = _a.endMessage,
21376
- dataLength = _a.dataLength;
21376
+ dataLength = _a.dataLength,
21377
+ _d = _a.width,
21378
+ width = _d === void 0 ? 264 : _d;
21377
21379
 
21378
- var _d = useState(false),
21379
- shouldShowImageGrid = _d[0],
21380
- setShouldShowImageGrid = _d[1];
21380
+ var _e = useState(false),
21381
+ shouldShowImageGrid = _e[0],
21382
+ setShouldShowImageGrid = _e[1];
21381
21383
 
21382
21384
  return jsx(AnimatePresence, null, isOpen && jsx(Div, {
21383
21385
  initial: {
@@ -21395,7 +21397,7 @@ var ImageUploadWidget = function (_a) {
21395
21397
  position: "absolute",
21396
21398
  flexDirection: "column",
21397
21399
  height: shouldShowImageGrid ? '450px' : '300px',
21398
- width: "264px",
21400
+ width: width + "px",
21399
21401
  backgroundColor: "foreground",
21400
21402
  boxShadow: "mediumDark",
21401
21403
  borderRadius: "medium",
@@ -23,5 +23,6 @@ export declare type ImageUploadWidgetProps = {
23
23
  loadMore?: () => void;
24
24
  hasMore?: boolean;
25
25
  endMessage?: string;
26
+ width?: number;
26
27
  };
27
28
  export declare const ImageUploadWidget: FC<ImageUploadWidgetProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "1.7.41",
3
+ "version": "1.7.42",
4
4
  "description": "UI component library for Quantum Design System",
5
5
  "module": "dist/index.es.js",
6
6
  "jsnext:main": "dist/index.es.js",