@sendoutcards/quantum-design-ui 1.7.84 → 1.7.86

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
@@ -11659,6 +11659,28 @@ var Swap = function (_a) {
11659
11659
  }));
11660
11660
  };
11661
11661
 
11662
+ var Warning = function (_a) {
11663
+ var primaryColor = _a.primaryColor,
11664
+ onClick = _a.onClick,
11665
+ size = _a.size,
11666
+ entity = _a.entity;
11667
+ return jsx("svg", {
11668
+ onClick: onClick && function () {
11669
+ return onClick();
11670
+ },
11671
+ width: getIconSize(size, entity),
11672
+ height: getIconSize(size, entity),
11673
+ fill: "none",
11674
+ stroke: getIconColor(primaryColor, entity),
11675
+ viewBox: "0 0 24 24",
11676
+ xmlns: "http://www.w3.org/2000/svg"
11677
+ }, jsx("path", {
11678
+ d: "M13.0718 4.24418C12.5863 3.43501 11.4136 3.43501 10.9281 4.24418L2.46046 18.3569C1.96056 19.19 2.56071 20.25 3.53232 20.25H20.4676C21.4392 20.25 22.0393 19.19 21.5394 18.3569L13.0718 4.24418ZM9.64184 3.47243C10.7099 1.69225 13.2899 1.69226 14.358 3.47244L22.8257 17.5851C23.9254 19.4181 22.6051 21.75 20.4676 21.75H3.53232C1.39476 21.75 0.0744533 19.4181 1.17422 17.5851L9.64184 3.47243ZM11.9999 8.25C12.4142 8.25 12.7499 8.58578 12.7499 9V13C12.7499 13.4142 12.4142 13.75 11.9999 13.75C11.5857 13.75 11.2499 13.4142 11.2499 13V9C11.2499 8.58578 11.5857 8.25 11.9999 8.25ZM11.9999 15.25C12.4142 15.25 12.7499 15.5858 12.7499 16V17C12.7499 17.4142 12.4142 17.75 11.9999 17.75C11.5857 17.75 11.2499 17.4142 11.2499 17V16C11.2499 15.5858 11.5857 15.25 11.9999 15.25Z",
11679
+ fill: getIconColor(primaryColor, entity),
11680
+ fillRule: "evenodd"
11681
+ }));
11682
+ };
11683
+
11662
11684
  var Icon = function (_a) {
11663
11685
  var primaryColor = _a.primaryColor,
11664
11686
  secondaryColor = _a.secondaryColor,
@@ -12059,6 +12081,9 @@ var Icon = function (_a) {
12059
12081
 
12060
12082
  case 'swap':
12061
12083
  return jsx(Swap, props);
12084
+
12085
+ case 'warning':
12086
+ return jsx(Warning, props);
12062
12087
  }
12063
12088
  };
12064
12089
 
@@ -22767,10 +22792,12 @@ var isDragEventType = function (event) {
22767
22792
  return 'dataTransfer' in event;
22768
22793
  };
22769
22794
 
22770
- var useFileUpload = function (props) {
22771
- var _a = React.useState(null),
22772
- error = _a[0],
22773
- setError = _a[1];
22795
+ var ImageUploader = function (props) {
22796
+ var _a, _b;
22797
+
22798
+ var _c = React.useState(null),
22799
+ error = _c[0],
22800
+ setError = _c[1];
22774
22801
 
22775
22802
  var onUpload = props.onUpload;
22776
22803
  var onDrop = useCallback(function (acceptedFiles, rejectedFiles, event) {
@@ -22801,34 +22828,19 @@ var useFileUpload = function (props) {
22801
22828
  var onDragEnter = useCallback(function () {
22802
22829
  setError(null);
22803
22830
  }, []);
22804
- var dropzone = useDropzone({
22831
+
22832
+ var _d = useDropzone({
22805
22833
  onDrop: onDrop,
22806
22834
  accept: parseAcceptedFiles(props.acceptedFiles),
22807
- multiple: props.hasMultiUpload,
22835
+ multiple: props.hasMultiupload,
22808
22836
  maxFiles: props.maxAcceptedFiles,
22809
22837
  maxSize: props.maxFileSize,
22810
22838
  onDragEnter: onDragEnter
22811
- });
22812
- return [__assign({
22813
- onDragEnter: onDragEnter
22814
- }, dropzone), error];
22815
- };
22816
-
22817
- var ImageUploader = function (props) {
22818
- var _a, _b;
22819
-
22820
- props.uploadTitle;
22821
- props.backgroundColor;
22822
- var hookProps = __rest(props, ["uploadTitle", "backgroundColor"]);
22823
-
22824
- var _c = useFileUpload(hookProps),
22825
- dropzone = _c[0],
22826
- error = _c[1];
22839
+ }),
22840
+ getRootProps = _d.getRootProps,
22841
+ getInputProps = _d.getInputProps,
22842
+ isDragActive = _d.isDragActive;
22827
22843
 
22828
- var isDragActive = dropzone.isDragActive,
22829
- getRootProps = dropzone.getRootProps,
22830
- getInputProps = dropzone.getInputProps,
22831
- onDragEnter = dropzone.onDragEnter;
22832
22844
  return jsx(React.Fragment, null, jsx(Flex, {
22833
22845
  inset: "x1",
22834
22846
  flexWrap: "wrap",
@@ -22869,9 +22881,6 @@ var ImageUploader = function (props) {
22869
22881
  }), jsx(Text, {
22870
22882
  type: "largeBody",
22871
22883
  content: (_b = props.uploadTitle) !== null && _b !== void 0 ? _b : 'Upload Photo'
22872
- }), jsx(Text, {
22873
- type: "footnote",
22874
- content: "Drag and Drop Image Here"
22875
22884
  })))), error && jsx(Text, {
22876
22885
  type: "footnote",
22877
22886
  content: error,
@@ -22893,26 +22902,25 @@ var ImageUploadWidget = function (_a) {
22893
22902
  var _b = _a.title,
22894
22903
  title = _b === void 0 ? 'Image Background' : _b,
22895
22904
  onFinished = _a.onFinished,
22905
+ onUpload = _a.onUpload,
22896
22906
  x = _a.x,
22897
22907
  y = _a.y,
22898
22908
  isOpen = _a.isOpen,
22909
+ _c = _a.hasMultiUpload,
22910
+ hasMultiUpload = _c === void 0 ? false : _c,
22899
22911
  userImages = _a.userImages,
22900
22912
  hasMore = _a.hasMore,
22901
22913
  loadMore = _a.loadMore,
22902
22914
  endMessage = _a.endMessage,
22903
22915
  dataLength = _a.dataLength,
22904
- _c = _a.width,
22905
- width = _c === void 0 ? 264 : _c,
22906
- hookProps = __rest(_a, ["title", "onFinished", "x", "y", "isOpen", "userImages", "hasMore", "loadMore", "endMessage", "dataLength", "width"]);
22916
+ _d = _a.width,
22917
+ width = _d === void 0 ? 264 : _d;
22907
22918
 
22908
- var _d = useState(false),
22909
- shouldShowImageGrid = _d[0],
22910
- setShouldShowImageGrid = _d[1];
22919
+ var _e = useState(false),
22920
+ shouldShowImageGrid = _e[0],
22921
+ setShouldShowImageGrid = _e[1];
22911
22922
 
22912
22923
  var inputRef = useRef(null);
22913
- var dropzone = useFileUpload(hookProps)[0];
22914
- var getInputProps = dropzone.getInputProps,
22915
- onDragEnter = dropzone.onDragEnter;
22916
22924
  return jsx(AnimatePresence, null, isOpen && jsx(Div, {
22917
22925
  initial: {
22918
22926
  opacity: 0
@@ -23021,7 +23029,11 @@ var ImageUploadWidget = function (_a) {
23021
23029
  url: image.url
23022
23030
  }
23023
23031
  })));
23024
- }))))) : jsx(ImageUploader, hookProps)), jsx(HStack, {
23032
+ }))))) : jsx(ImageUploader, {
23033
+ onUpload: onUpload,
23034
+ acceptedFiles: ['gif', 'jpeg', 'jpg', 'png'],
23035
+ hasMultiupload: hasMultiUpload
23036
+ })), jsx(HStack, {
23025
23037
  outset: "x1",
23026
23038
  justify: "center",
23027
23039
  gap: "x1"
@@ -23041,10 +23053,23 @@ var ImageUploadWidget = function (_a) {
23041
23053
  size: "small",
23042
23054
  type: "smoke",
23043
23055
  title: "Upload..."
23044
- }), jsx("input", _extends({}, getInputProps(), {
23056
+ }), jsx("input", {
23045
23057
  ref: inputRef,
23046
- onClick: onDragEnter
23047
- }))), jsx(Div, {
23058
+ type: "file",
23059
+ accept: "image/*",
23060
+ style: {
23061
+ display: 'none'
23062
+ },
23063
+ onChange: function (e) {
23064
+ var _a, _b;
23065
+
23066
+ var file = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b[0];
23067
+ if (file) onUpload({
23068
+ accepted: [file],
23069
+ rejected: []
23070
+ });
23071
+ }
23072
+ })), jsx(Div, {
23048
23073
  width: "120px"
23049
23074
  }, jsx(Button, {
23050
23075
  onClick: function () {
@@ -24287,8 +24312,7 @@ var StackedCardHead = function (_a) {
24287
24312
  var cardImage = _a.cardImage,
24288
24313
  cardOrientation = _a.cardOrientation,
24289
24314
  quantity = _a.quantity,
24290
- quantityDescription = _a.quantityDescription,
24291
- secondaryAction = _a.secondaryAction;
24315
+ quantityDescription = _a.quantityDescription;
24292
24316
  return jsx(VStack, {
24293
24317
  gap: "x2"
24294
24318
  }, jsx(StackedCards, {
@@ -24296,7 +24320,7 @@ var StackedCardHead = function (_a) {
24296
24320
  height: cardOrientation === 'vertical' ? 285 : 200,
24297
24321
  stackBackgroundColor: "background",
24298
24322
  backgroundImage: cardImage
24299
- }), secondaryAction && secondaryAction, jsx(Text, {
24323
+ }), jsx(Text, {
24300
24324
  type: "largeBody",
24301
24325
  weight: "bold",
24302
24326
  color: "primaryHeading",
@@ -24313,16 +24337,14 @@ var CardQuantitySlider = function (props) {
24313
24337
  var cardOrientation = props.cardOrientation,
24314
24338
  cardImage = props.cardImage,
24315
24339
  quantityDescription = props.quantityDescription,
24316
- secondaryAction = props.secondaryAction,
24317
- rest = __rest(props, ["cardOrientation", "cardImage", "quantityDescription", "secondaryAction"]);
24340
+ rest = __rest(props, ["cardOrientation", "cardImage", "quantityDescription"]);
24318
24341
 
24319
24342
  return jsx(React.Fragment, null, jsx(QuantitySlider, _extends({}, rest, {
24320
24343
  head: jsx(StackedCardHead, {
24321
24344
  cardOrientation: cardOrientation,
24322
24345
  quantity: rest.quantity,
24323
24346
  quantityDescription: quantityDescription,
24324
- cardImage: cardImage,
24325
- secondaryAction: secondaryAction
24347
+ cardImage: cardImage
24326
24348
  })
24327
24349
  })));
24328
24350
  };
@@ -24348,8 +24370,7 @@ var BulkSend = function (_a) {
24348
24370
  isConfigurable = _a.isConfigurable,
24349
24371
  disableMessage = _a.disableMessage,
24350
24372
  sliderOrientation = _a.sliderOrientation,
24351
- sliderImage = _a.sliderImage,
24352
- secondaryAction = _a.secondaryAction;
24373
+ sliderImage = _a.sliderImage;
24353
24374
 
24354
24375
  var _b = React.useState(false),
24355
24376
  isAddDialogOpen = _b[0],
@@ -24580,8 +24601,7 @@ var BulkSend = function (_a) {
24580
24601
  sliderFill: sliderFill,
24581
24602
  hasIncrement: hasIncrement,
24582
24603
  cardImage: sliderImage,
24583
- cardOrientation: sliderOrientation,
24584
- secondaryAction: secondaryAction
24604
+ cardOrientation: sliderOrientation
24585
24605
  }), jsx(Flex, {
24586
24606
  outset: {
24587
24607
  top: 'x4'
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { SVGProps } from '../types/index';
3
+ export declare const Warning: FC<SVGProps>;
@@ -11,7 +11,7 @@ export declare type SVGProps = {
11
11
  entity: IconsEntity;
12
12
  orientation?: orientation;
13
13
  };
14
- export declare type IconType = 'catalog' | 'socLogo' | 'campaigns' | 'gift' | 'plus' | 'minus' | 'tenDoor' | 'rightChevron' | 'close' | 'award' | 'contact' | 'multipleUsers2x' | 'multipleUsers3x' | 'information' | 'hamburger' | 'leftChevron' | 'chevron' | 'information' | 'filterBy' | 'groups' | 'idCard' | 'plusSquare' | 'star' | 'search' | 'cart' | 'priceTag' | 'layer' | 'loading' | 'play' | 'lock' | 'user' | 'noUsers' | 'add' | 'check' | 'exclamation' | 'envelope' | 'userSuccess' | 'image' | 'imageSwap' | 'text' | 'color' | 'template' | 'redo' | 'undo' | 'copy' | 'drag' | 'delete' | 'crop' | 'alignLeft' | 'alignRight' | 'alignCenter' | 'allPanel' | 'fullBleed' | 'fullBleedLandscape' | 'fullBleedPortrait' | 'sliderHorizontal' | 'sliderVertical' | 'cropRotate' | 'frame' | 'cut' | 'wand' | 'layerAdd' | 'layerRemove' | 'layerDisabled' | 'signature' | 'shadows' | 'rotateLeft' | 'rotateRight' | 'colorPalette' | 'dropper' | 'textBox' | 'fontSize' | 'flipHorizontal' | 'flipVertical' | 'filter' | 'brightness' | 'aText' | 'frameWidth' | 'frameHeight' | 'layerUp' | 'layerDown' | 'capitalizedText' | 'uppercaseText' | 'lowercaseText' | 'fullBleedImage' | 'fullBleedText' | 'panelMode' | 'viewPanels' | 'rotate' | 'view' | 'replaceImage' | 'quotation' | 'facebook' | 'instagram' | 'twitter' | 'linkedIn' | 'youtube' | 'pinterest' | 'visible' | 'invisible' | 'elementIcon' | 'complete' | 'download' | 'closeCircle' | 'backgroundSettings' | 'upload' | 'stickers' | 'clearPanel' | 'viewCarousel' | 'viewSinglePanel' | 'editorText' | 'layout' | 'background' | 'save' | 'signaturePen' | 'size' | 'variable' | 'imageUpload' | 'squareCheck' | 'userTag' | 'map' | 'mapLocation' | 'location' | 'creditCard' | 'calendar' | 'home' | 'bag' | 'swap';
14
+ export declare type IconType = 'catalog' | 'socLogo' | 'campaigns' | 'gift' | 'plus' | 'minus' | 'tenDoor' | 'rightChevron' | 'close' | 'award' | 'contact' | 'multipleUsers2x' | 'multipleUsers3x' | 'information' | 'hamburger' | 'leftChevron' | 'chevron' | 'information' | 'filterBy' | 'groups' | 'idCard' | 'plusSquare' | 'star' | 'search' | 'cart' | 'priceTag' | 'layer' | 'loading' | 'play' | 'lock' | 'user' | 'noUsers' | 'add' | 'check' | 'exclamation' | 'envelope' | 'userSuccess' | 'image' | 'imageSwap' | 'text' | 'color' | 'template' | 'redo' | 'undo' | 'copy' | 'drag' | 'delete' | 'crop' | 'alignLeft' | 'alignRight' | 'alignCenter' | 'allPanel' | 'fullBleed' | 'fullBleedLandscape' | 'fullBleedPortrait' | 'sliderHorizontal' | 'sliderVertical' | 'cropRotate' | 'frame' | 'cut' | 'wand' | 'layerAdd' | 'layerRemove' | 'layerDisabled' | 'signature' | 'shadows' | 'rotateLeft' | 'rotateRight' | 'colorPalette' | 'dropper' | 'textBox' | 'fontSize' | 'flipHorizontal' | 'flipVertical' | 'filter' | 'brightness' | 'aText' | 'frameWidth' | 'frameHeight' | 'layerUp' | 'layerDown' | 'capitalizedText' | 'uppercaseText' | 'lowercaseText' | 'fullBleedImage' | 'fullBleedText' | 'panelMode' | 'viewPanels' | 'rotate' | 'view' | 'replaceImage' | 'quotation' | 'facebook' | 'instagram' | 'twitter' | 'linkedIn' | 'youtube' | 'pinterest' | 'visible' | 'invisible' | 'elementIcon' | 'complete' | 'download' | 'closeCircle' | 'backgroundSettings' | 'upload' | 'stickers' | 'clearPanel' | 'viewCarousel' | 'viewSinglePanel' | 'editorText' | 'layout' | 'background' | 'save' | 'signaturePen' | 'size' | 'variable' | 'imageUpload' | 'squareCheck' | 'userTag' | 'map' | 'mapLocation' | 'location' | 'creditCard' | 'calendar' | 'home' | 'bag' | 'swap' | 'warning';
15
15
  export declare type IconProps = {
16
16
  name: IconType;
17
17
  } & Omit<SVGProps, 'entity'>;
@@ -1,9 +1,8 @@
1
- import React, { FC } from 'react';
1
+ import { FC } from 'react';
2
2
  export declare type StackedCardHeadProps = {
3
3
  cardImage?: string;
4
4
  cardOrientation?: 'vertical' | 'horizontal';
5
5
  quantity: number;
6
6
  quantityDescription: string;
7
- secondaryAction?: React.ReactNode;
8
7
  };
9
8
  export declare const StackedCardHead: FC<StackedCardHeadProps>;
@@ -31,21 +31,21 @@ export declare const Option: React.ForwardRefExoticComponent<({
31
31
  alignment?: "left" | "center" | "right" | undefined;
32
32
  onClick?: ((id: number) => void) | undefined;
33
33
  isSelected: boolean;
34
- graphic?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | undefined;
35
- icon?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | undefined;
34
+ graphic?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | "warning" | undefined;
35
+ icon?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | "warning" | undefined;
36
36
  id: number;
37
37
  } & TextLabelProps & React.RefAttributes<HTMLDivElement>) | ({
38
38
  alignment?: "left" | "center" | "right" | undefined;
39
39
  onClick?: ((id: number) => void) | undefined;
40
40
  isSelected: boolean;
41
- graphic?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | undefined;
42
- icon?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | undefined;
41
+ graphic?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | "warning" | undefined;
42
+ icon?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | "warning" | undefined;
43
43
  id: number;
44
44
  } & IconLabelProps & React.RefAttributes<HTMLDivElement>) | ({
45
45
  alignment?: "left" | "center" | "right" | undefined;
46
46
  onClick?: ((id: number) => void) | undefined;
47
47
  isSelected: boolean;
48
- graphic?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | undefined;
49
- icon?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | undefined;
48
+ graphic?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | "warning" | undefined;
49
+ icon?: "catalog" | "socLogo" | "campaigns" | "gift" | "plus" | "minus" | "tenDoor" | "rightChevron" | "close" | "award" | "contact" | "multipleUsers2x" | "multipleUsers3x" | "information" | "hamburger" | "leftChevron" | "chevron" | "filterBy" | "groups" | "idCard" | "plusSquare" | "star" | "search" | "cart" | "priceTag" | "layer" | "loading" | "play" | "lock" | "user" | "noUsers" | "add" | "check" | "exclamation" | "envelope" | "userSuccess" | "image" | "imageSwap" | "text" | "color" | "template" | "redo" | "undo" | "copy" | "drag" | "delete" | "crop" | "alignLeft" | "alignRight" | "alignCenter" | "allPanel" | "fullBleed" | "fullBleedLandscape" | "fullBleedPortrait" | "sliderHorizontal" | "sliderVertical" | "cropRotate" | "frame" | "cut" | "wand" | "layerAdd" | "layerRemove" | "layerDisabled" | "signature" | "shadows" | "rotateLeft" | "rotateRight" | "colorPalette" | "dropper" | "textBox" | "fontSize" | "flipHorizontal" | "flipVertical" | "filter" | "brightness" | "aText" | "frameWidth" | "frameHeight" | "layerUp" | "layerDown" | "capitalizedText" | "uppercaseText" | "lowercaseText" | "fullBleedImage" | "fullBleedText" | "panelMode" | "viewPanels" | "rotate" | "view" | "replaceImage" | "quotation" | "facebook" | "instagram" | "twitter" | "linkedIn" | "youtube" | "pinterest" | "visible" | "invisible" | "elementIcon" | "complete" | "download" | "closeCircle" | "backgroundSettings" | "upload" | "stickers" | "clearPanel" | "viewCarousel" | "viewSinglePanel" | "editorText" | "layout" | "background" | "save" | "signaturePen" | "size" | "variable" | "imageUpload" | "squareCheck" | "userTag" | "map" | "mapLocation" | "location" | "creditCard" | "calendar" | "home" | "bag" | "swap" | "warning" | undefined;
50
50
  id: number;
51
51
  } & IconTextLabelProps & React.RefAttributes<HTMLDivElement>)>;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { UseFileUploadProps } from "../../hooks/useFileUpload";
2
+ import { AcceptedFiles, RejectedFiles } from '../imageUploader/imageUploader';
3
3
  export declare type UserImage = {
4
4
  url: string;
5
5
  onClick: () => void;
@@ -7,8 +7,15 @@ export declare type UserImage = {
7
7
  };
8
8
  export declare type ImageUploadWidgetProps = {
9
9
  title: string;
10
+ maxHeight?: string;
11
+ onClose: () => void;
10
12
  onFinished: () => void;
11
13
  isOpen: boolean;
14
+ onUpload: (files: {
15
+ accepted: AcceptedFiles;
16
+ rejected: RejectedFiles;
17
+ }, fileList?: FileList | null) => void;
18
+ hasMultiUpload?: boolean;
12
19
  userImages?: UserImage[];
13
20
  x: number;
14
21
  y: number;
@@ -17,5 +24,5 @@ export declare type ImageUploadWidgetProps = {
17
24
  hasMore?: boolean;
18
25
  endMessage?: string;
19
26
  width?: number;
20
- } & UseFileUploadProps;
27
+ };
21
28
  export declare const ImageUploadWidget: FC<ImageUploadWidgetProps>;
@@ -1,8 +1,20 @@
1
1
  /// <reference types="react" />
2
+ import { FileRejection } from 'react-dropzone';
2
3
  import { BackgroundColor } from "../../helpers/hoc-types/hocBaseUnion";
3
- import { UseFileUploadProps } from "../../hooks/useFileUpload";
4
+ declare type AcceptedFileType = 'jpg' | 'png' | 'gif' | 'jpeg';
4
5
  export declare type ImageUploaderProps = {
6
+ onUpload: (files: {
7
+ accepted: File[];
8
+ rejected: FileRejection[];
9
+ }, fileList?: FileList | null) => void;
10
+ acceptedFiles: AcceptedFileType[];
11
+ hasMultiupload?: boolean;
12
+ maxFileSize?: number;
13
+ maxAcceptedFiles?: number;
5
14
  uploadTitle?: string;
6
15
  backgroundColor?: BackgroundColor;
7
- } & UseFileUploadProps;
16
+ };
17
+ export declare type AcceptedFiles = File[];
18
+ export declare type RejectedFiles = FileRejection[];
8
19
  export declare const ImageUploader: (props: ImageUploaderProps) => JSX.Element;
20
+ export {};
@@ -1,4 +1,4 @@
1
- import React, { FC } from 'react';
1
+ import { FC } from 'react';
2
2
  import { SliderProgressColor } from "../../../../exports/molecules";
3
3
  import { ConfigurationCardProps, ConfirmDialogProps } from "../../../../exports/organisms";
4
4
  export declare type ConfigurationOptionSection = {
@@ -40,7 +40,6 @@ export declare type BulkSendProps = {
40
40
  disableMessage: string;
41
41
  sliderImage?: string;
42
42
  sliderOrientation?: 'vertical' | 'horizontal';
43
- secondaryAction?: React.ReactNode;
44
43
  };
45
44
  export declare const BulkSend: FC<BulkSendProps>;
46
45
  export {};
@@ -1,9 +1,8 @@
1
- import React, { FC } from 'react';
1
+ import { FC } from 'react';
2
2
  import { QuantitySliderProps } from "../../../../exports/molecules";
3
3
  export declare type CardQuantitySliderProps = {
4
4
  cardImage?: string;
5
5
  cardOrientation?: 'vertical' | 'horizontal';
6
6
  quantityDescription: string;
7
- secondaryAction?: React.ReactNode;
8
7
  } & QuantitySliderProps;
9
8
  export declare const CardQuantitySlider: FC<CardQuantitySliderProps>;
@@ -119,4 +119,5 @@ export declare const ViewCarousel: any;
119
119
  export declare const ViewPanels: any;
120
120
  export declare const ViewSinglePanel: any;
121
121
  export declare const Wand: any;
122
+ export declare const Warning: any;
122
123
  export declare const Youtube: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "1.7.84",
3
+ "version": "1.7.86",
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",
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { HOCBaseProps } from "../../helpers/hoc-types/hocBasePropTypes";
3
- import { HOCMotionProps } from "../../helpers/hoc-types/hocMotionTypes";
4
- export declare type DivProps = {
5
- children?: React.ReactNode;
6
- outsideClick?: () => void;
7
- clickElementBypass?: string;
8
- } & HOCBaseProps & HOCMotionProps;
9
- export declare const Companion: React.ForwardRefExoticComponent<{
10
- children?: React.ReactNode;
11
- outsideClick?: (() => void) | undefined;
12
- clickElementBypass?: string | undefined;
13
- } & HOCBaseProps & {
14
- className?: string | undefined;
15
- motionKey?: string | number | undefined;
16
- id?: string | undefined;
17
- } & import("framer-motion").MotionProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import { DropzoneState, FileRejection } from 'react-dropzone';
3
- declare type AcceptedFileType = 'jpg' | 'png' | 'gif' | 'jpeg';
4
- export declare type AcceptedFiles = File[];
5
- export declare type RejectedFiles = FileRejection[];
6
- export declare type UseFileUploadProps = {
7
- onUpload: (files: {
8
- accepted: File[];
9
- rejected: FileRejection[];
10
- }, fileList?: FileList | null) => void;
11
- acceptedFiles: AcceptedFileType[];
12
- hasMultiUpload?: boolean;
13
- maxFileSize?: number;
14
- maxAcceptedFiles?: number;
15
- };
16
- export declare const useFileUpload: (props: UseFileUploadProps) => [import("react-dropzone").DropzoneRef & {
17
- isFocused: boolean;
18
- isDragActive: boolean;
19
- isDragAccept: boolean;
20
- isDragReject: boolean;
21
- isFileDialogActive: boolean;
22
- draggedFiles: File[];
23
- acceptedFiles: File[];
24
- fileRejections: FileRejection[];
25
- rootRef: React.RefObject<HTMLElement>;
26
- inputRef: React.RefObject<HTMLInputElement>;
27
- getRootProps: <T extends import("react-dropzone").DropzoneRootProps>(props?: T | undefined) => T;
28
- getInputProps: <T_1 extends import("react-dropzone").DropzoneInputProps>(props?: T_1 | undefined) => T_1;
29
- } & {
30
- onDragEnter: () => void;
31
- }, string | null];
32
- export {};