@sendoutcards/quantum-design-ui 1.7.57 → 1.7.60

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
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useCallback, useState, useMemo, useRef, useLayoutEffect, useContext } from 'react';
1
+ import React, { useEffect, useCallback, useState, useMemo, useRef, useLayoutEffect, useContext, useImperativeHandle } from 'react';
2
2
  import { ThemeProvider, useTheme } from 'emotion-theming';
3
3
  import { jsx, Global, css } from '@emotion/core';
4
4
  import Color$1 from 'color';
@@ -10699,6 +10699,28 @@ var SquareCheck = function (_a) {
10699
10699
  }));
10700
10700
  };
10701
10701
 
10702
+ var UserTag = function (_a) {
10703
+ var primaryColor = _a.primaryColor,
10704
+ onClick = _a.onClick,
10705
+ size = _a.size,
10706
+ entity = _a.entity;
10707
+ return jsx("svg", {
10708
+ xmlns: "http://www.w3.org/2000/svg",
10709
+ width: getIconSize(size, entity),
10710
+ height: getIconSize(size, entity),
10711
+ onClick: onClick && function () {
10712
+ return onClick();
10713
+ },
10714
+ viewBox: "0 0 24 24"
10715
+ }, jsx("path", {
10716
+ d: "M 12 22.75 C 11.3 22.75 10.59 22.48 10.06 21.95 L 8.35 20.26 C 7.93 19.84 7.35 19.61 6.76 19.61 L 6 19.61 C 3.93 19.61 2.25 17.94 2.25 15.89 L 2.25 4.98 C 2.25 2.93 3.93 1.26 6 1.26 L 18 1.26 C 20.07 1.26 21.75 2.93 21.75 4.98 L 21.75 15.89 C 21.75 17.94 20.07 19.61 18 19.61 L 17.24 19.61 C 16.646 19.613 16.076 19.846 15.65 20.26 L 13.94 21.95 C 13.41 22.48 12.7 22.75 12 22.75 Z M 6 2.75 C 4.76 2.75 3.75 3.75 3.75 4.97 L 3.75 15.88 C 3.75 17.11 4.76 18.1 6 18.1 L 6.76 18.1 C 7.75 18.1 8.71 18.5 9.41 19.19 L 11.12 20.88 C 11.61 21.36 12.4 21.36 12.89 20.88 L 14.6 19.19 C 15.3 18.5 16.26 18.1 17.25 18.1 L 18 18.1 C 19.24 18.1 20.25 17.1 20.25 15.88 L 20.25 4.97 C 20.25 3.74 19.24 2.75 18 2.75 Z",
10717
+ fill: getIconColor(primaryColor, entity)
10718
+ }), jsx("path", {
10719
+ d: "M 12 10.75 C 10.3 10.75 8.92 9.37 8.92 7.67 C 8.963 6 10.329 4.667 12 4.667 C 13.671 4.667 15.037 6 15.08 7.67 C 15.08 9.37 13.7 10.75 12 10.75 Z M 12 6.09 C 11.13 6.09 10.42 6.8 10.42 7.67 C 10.42 8.54 11.13 9.25 12 9.25 C 12.87 9.25 13.58 8.54 13.58 7.67 C 13.58 6.8 12.87 6.09 12 6.09 Z M 16 16.41 C 15.59 16.41 15.25 16.07 15.25 15.66 C 15.25 14.28 13.79 13.15 12 13.15 C 10.21 13.15 8.75 14.28 8.75 15.66 C 8.75 16.07 8.41 16.41 8 16.41 C 7.59 16.41 7.25 16.07 7.25 15.66 C 7.25 13.45 9.38 11.65 12 11.65 C 14.62 11.65 16.75 13.45 16.75 15.66 C 16.75 16.07 16.41 16.41 16 16.41 Z",
10720
+ fill: getIconColor(primaryColor, entity)
10721
+ }));
10722
+ };
10723
+
10702
10724
  var Icon = function (_a) {
10703
10725
  var primaryColor = _a.primaryColor,
10704
10726
  secondaryColor = _a.secondaryColor,
@@ -11072,6 +11094,9 @@ var Icon = function (_a) {
11072
11094
 
11073
11095
  case 'squareCheck':
11074
11096
  return jsx(SquareCheck, props);
11097
+
11098
+ case 'userTag':
11099
+ return jsx(UserTag, props);
11075
11100
  }
11076
11101
  };
11077
11102
 
@@ -17496,7 +17521,8 @@ var Banner = function (_a) {
17496
17521
  children = _a.children,
17497
17522
  _b = _a.outlined,
17498
17523
  outlined = _b === void 0 ? true : _b;
17499
- return jsx(Div, {
17524
+ return jsx(Flex, {
17525
+ width: "100%",
17500
17526
  backgroundColor: {
17501
17527
  swatch: status === 'success' ? 'success' : status === 'warning' ? 'warning' : 'danger',
17502
17528
  shade: outlined ? '_1000' : 'base'
@@ -17507,23 +17533,19 @@ var Banner = function (_a) {
17507
17533
  swatch: status === 'success' ? 'success' : status === 'warning' ? 'warning' : 'danger',
17508
17534
  shade: 'base'
17509
17535
  } : undefined,
17510
- width: "100%",
17511
17536
  inset: {
17512
17537
  vertical: 'x2',
17513
17538
  horizontal: 'x1'
17514
17539
  },
17515
17540
  borderRadius: "default",
17516
- display: "flex",
17517
- justifyContent: "space-between"
17518
- }, jsx(Div, {
17519
- display: 'flex'
17520
- }, icon && jsx(Span, {
17521
- inset: {
17522
- right: 'x1'
17523
- },
17524
- display: "flex",
17525
- justifyContent: "center",
17541
+ justifyContent: "flex-start",
17526
17542
  alignItems: "center"
17543
+ }, jsx(Flex, null, icon && jsx(Flex, {
17544
+ justifyContent: "center",
17545
+ alignItems: "center",
17546
+ inset: {
17547
+ horizontal: 'x1'
17548
+ }
17527
17549
  }, jsx(Icon, {
17528
17550
  name: icon,
17529
17551
  size: "small",
@@ -22100,18 +22122,24 @@ var UpsaleOptions = function (_a) {
22100
22122
  size: "small",
22101
22123
  color: "primaryBody",
22102
22124
  outset: "0 auto"
22103
- }), submitAction && jsx(Button, {
22125
+ }), submitAction && jsx(Flex, {
22126
+ width: "100%",
22127
+ justifyContent: "center",
22128
+ alignItems: "center"
22129
+ }, jsx(Button, {
22104
22130
  title: submitAction.title,
22105
22131
  type: submitAction.type,
22106
22132
  onClick: submitAction.onClick,
22107
22133
  fullWidth: submitAction.isFullWidth,
22108
22134
  disabled: submitAction.isDisabled,
22109
22135
  size: "large"
22110
- }))));
22136
+ })))));
22111
22137
  };
22112
22138
 
22113
22139
  var SOC_FRONT_Z_INDEX = 103;
22114
22140
  var UpsaleDialog = function (_a) {
22141
+ var _b;
22142
+
22115
22143
  var title = _a.title,
22116
22144
  description = _a.description,
22117
22145
  checkoutTitle = _a.checkoutTitle,
@@ -22127,26 +22155,26 @@ var UpsaleDialog = function (_a) {
22127
22155
  insetOverride = _a.insetOverride,
22128
22156
  maxWidth = _a.maxWidth,
22129
22157
  maxHeight = _a.maxHeight,
22130
- _b = _a.zIndex,
22131
- zIndex = _b === void 0 ? SOC_FRONT_Z_INDEX : _b,
22158
+ _c = _a.zIndex,
22159
+ zIndex = _c === void 0 ? SOC_FRONT_Z_INDEX : _c,
22132
22160
  //Soc-frontend
22133
22161
  successComponent = _a.successComponent,
22134
22162
  upsaleContentTitle = _a.upsaleContentTitle,
22135
- _c = _a.sponsorId,
22136
- sponsorId = _c === void 0 ? '9070' : _c,
22163
+ _d = _a.sponsorId,
22164
+ sponsorId = _d === void 0 ? '9070' : _d,
22137
22165
  extraLink = _a.extraLink,
22138
22166
  defaultNumOptionsShown = _a.defaultNumOptionsShown,
22139
22167
  submitAction = _a.submitAction,
22140
22168
  acceptSelectedAction = _a.acceptSelectedAction;
22141
22169
 
22142
- var _d = React.useState(false),
22143
- shouldShowCheckoutView = _d[0],
22144
- setShouldShowCheckoutView = _d[1];
22170
+ var _e = React.useState(false),
22171
+ shouldShowCheckoutView = _e[0],
22172
+ setShouldShowCheckoutView = _e[1];
22145
22173
 
22146
- var _e = useResizeObserver(),
22147
- ref = _e.ref,
22148
- width = _e.width,
22149
- height = _e.height;
22174
+ var _f = useResizeObserver(),
22175
+ ref = _f.ref,
22176
+ width = _f.width,
22177
+ height = _f.height;
22150
22178
 
22151
22179
  var dialogFooterHeight = '170px';
22152
22180
  var device = useWindowSize().width;
@@ -22161,11 +22189,8 @@ var UpsaleDialog = function (_a) {
22161
22189
  var activeSelectedOption = findOption(selectedOption);
22162
22190
 
22163
22191
  var handleOnClick = function () {
22164
- if (acceptSelectedAction) {
22165
- acceptSelectedAction.onClick();
22166
- } else {
22167
- setShouldShowCheckoutView(true);
22168
- }
22192
+ setShouldShowCheckoutView(true);
22193
+ acceptSelectedAction === null || acceptSelectedAction === void 0 ? void 0 : acceptSelectedAction.onClick();
22169
22194
  };
22170
22195
 
22171
22196
  return jsx(Dialog, {
@@ -22263,7 +22288,7 @@ var UpsaleDialog = function (_a) {
22263
22288
  }, jsx(Button, {
22264
22289
  type: 'primary',
22265
22290
  size: "large",
22266
- title: acceptSelectedAction ? acceptSelectedAction.title : 'Continue to Checkout',
22291
+ title: (_b = acceptSelectedAction === null || acceptSelectedAction === void 0 ? void 0 : acceptSelectedAction.title) !== null && _b !== void 0 ? _b : 'Continue to Checkout',
22267
22292
  disabled: !selectedOption.length,
22268
22293
  onClick: handleOnClick
22269
22294
  }))), !isMobile && jsx(Div, {
@@ -22738,23 +22763,19 @@ var ComparisonItem = function (_a) {
22738
22763
  })));
22739
22764
  };
22740
22765
 
22741
- var UploadButton = function (_a) {
22742
- var title = _a.title,
22743
- onUpload = _a.onUpload,
22744
- backgroundColor = _a.backgroundColor,
22745
- _b = _a.width,
22746
- width = _b === void 0 ? '160px' : _b,
22747
- _c = _a.height,
22748
- height = _c === void 0 ? '40px' : _c,
22749
- _d = _a.boxShadow,
22750
- boxShadow = _d === void 0 ? 'mediumLight' : _d,
22751
- _e = _a.borderRadius,
22752
- borderRadius = _e === void 0 ? 'medium' : _e;
22766
+ var UploadButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
22767
+ var onUpload = props.onUpload,
22768
+ title = props.title,
22769
+ width = props.width,
22770
+ height = props.height,
22771
+ boxShadow = props.boxShadow,
22772
+ borderRadius = props.borderRadius,
22773
+ backgroundColor = props.backgroundColor;
22753
22774
  var inputRef = useRef(null);
22754
22775
 
22755
- var _f = useState(),
22756
- preview = _f[0],
22757
- setPreview = _f[1];
22776
+ var _a = useState(),
22777
+ preview = _a[0],
22778
+ setPreview = _a[1];
22758
22779
 
22759
22780
  var handleUpload = function (event) {
22760
22781
  event.preventDefault();
@@ -22779,6 +22800,13 @@ var UploadButton = function (_a) {
22779
22800
  }
22780
22801
  };
22781
22802
 
22803
+ useImperativeHandle(ref, function () {
22804
+ return {
22805
+ clearPreview: function () {
22806
+ setPreview(null);
22807
+ }
22808
+ };
22809
+ });
22782
22810
  return jsx(Flex, {
22783
22811
  backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : 'foreground',
22784
22812
  boxShadow: boxShadow,
@@ -22827,13 +22855,13 @@ var UploadButton = function (_a) {
22827
22855
  backgroundSize: "cover"
22828
22856
  })), jsx(Text, {
22829
22857
  type: "caption",
22830
- content: !preview ? title : 'Uploading...',
22858
+ content: title,
22831
22859
  color: "primaryHeading",
22832
22860
  inset: {
22833
22861
  left: 'x1'
22834
22862
  }
22835
22863
  }));
22836
- };
22864
+ });
22837
22865
 
22838
22866
  var _emotionSourceMap$1 = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHd0IiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgX19tYWtlVGVtcGxhdGVPYmplY3QgfSBmcm9tIFwidHNsaWJcIjtcclxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICAgIHRodW1ibmFpbENvbnRhaW5lcjogY3NzKHRlbXBsYXRlT2JqZWN0XzEgfHwgKHRlbXBsYXRlT2JqZWN0XzEgPSBfX21ha2VUZW1wbGF0ZU9iamVjdChbXCJcIl0sIFtcIlwiXSkpKSxcclxufTtcclxudmFyIHRlbXBsYXRlT2JqZWN0XzE7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXN0eWxlcy5qcy5tYXAiXX0= */";
22839
22867
  var styles$1 = {
@@ -23670,8 +23698,11 @@ var SubscriptionUpsaleDialog = function (_a) {
23670
23698
  insetOverride = _a.insetOverride,
23671
23699
  handleSelectedOption = _a.handleSelectedOption,
23672
23700
  sponsorId = _a.sponsorId;
23701
+ _a.upsaleContent;
23702
+ var rest = __rest(_a, ["title", "description", "checkoutTitle", "checkoutDescription", "selectableOptions", "upsaleContentTitle", "isOpen", "setIsDialogOpen", "optionFormLocation", "children", "selectedOption", "removeSelectedOption", "successComponent", "insetOverride", "handleSelectedOption", "sponsorId", "upsaleContent"]);
23703
+
23673
23704
  var device = useWindowSize().width;
23674
- return jsx("div", null, jsx(UpsaleDialog, {
23705
+ return jsx("div", null, jsx(UpsaleDialog, _extends({
23675
23706
  sponsorId: sponsorId,
23676
23707
  title: title,
23677
23708
  description: description,
@@ -23697,7 +23728,7 @@ var SubscriptionUpsaleDialog = function (_a) {
23697
23728
  successComponent: successComponent,
23698
23729
  insetOverride: insetOverride,
23699
23730
  maxWidth: '1500px'
23700
- }, children));
23731
+ }, rest), children));
23701
23732
  };
23702
23733
 
23703
23734
  var useColorSwatch = function () {
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { SVGProps } from '../types/index';
3
+ export declare const UserTag: 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';
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';
15
15
  export declare type IconProps = {
16
16
  name: IconType;
17
17
  } & Omit<SVGProps, 'entity'>;
@@ -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" | 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" | 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" | 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" | 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" | 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" | 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" | 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" | 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" | 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" | 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" | 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" | undefined;
50
50
  id: number;
51
51
  } & IconTextLabelProps & React.RefAttributes<HTMLDivElement>)>;
@@ -1,6 +1,9 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
2
  import { BackgroundColor, Width, Height, BorderRadius } from "../../helpers/hoc-types/hocBaseUnion";
3
3
  import { Shadows } from "../../helpers/hoc-types/entityValueTypes";
4
+ export declare type UploadButtonRef = {
5
+ clearPreview: () => void;
6
+ };
4
7
  export declare type UploadButtonProps = {
5
8
  onUpload: (upload: File | null) => void;
6
9
  title: string;
@@ -10,4 +13,4 @@ export declare type UploadButtonProps = {
10
13
  boxShadow?: Shadows;
11
14
  borderRadius?: BorderRadius;
12
15
  };
13
- export declare const UploadButton: FC<UploadButtonProps>;
16
+ export declare const UploadButton: React.ForwardRefExoticComponent<UploadButtonProps & React.RefAttributes<unknown>>;
@@ -100,6 +100,7 @@ export declare const Text: any;
100
100
  export declare const TextBox: any;
101
101
  export declare const Twitter: any;
102
102
  export declare const Undo: any;
103
+ export declare const UserTag: any;
103
104
  export declare const Upload: any;
104
105
  export declare const UppercaseText: any;
105
106
  export declare const User: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "1.7.57",
3
+ "version": "1.7.60",
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",