@sendoutcards/quantum-design-ui 1.7.15 → 1.7.16

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.
@@ -59,3 +59,4 @@ export * from "../molecules/quantitySlider/quantitySlider";
59
59
  export * from "../molecules/featureBadge/featureBadge";
60
60
  export * from "../molecules/titledList/titledList";
61
61
  export * from "../molecules/imageThumbnail/imageThumbnail";
62
+ export * from "../molecules/displayCard/displayCard";
@@ -40,3 +40,4 @@ export * from "../organisms/featureAnnouncement/featureAnnouncement";
40
40
  export * from "../organisms/settingInput/settingInput";
41
41
  export * from "../organisms/releaseNote/releaseNote";
42
42
  export * from "../organisms/imageUploader/imageUploader";
43
+ export * from "../organisms/imageUploadWidget/imageUploadWidget";
@@ -180,47 +180,45 @@ export declare const useEntities: () => {
180
180
  x9: string;
181
181
  };
182
182
  buttons: {
183
- types: {
184
- primary: {
185
- backgroundColor: string;
186
- fontColor: string;
187
- fontFamily: string;
188
- };
189
- secondary: {
190
- backgroundColor: string;
191
- fontColor: string;
192
- fontFamily: string;
193
- };
194
- warning: {
195
- backgroundColor: string;
196
- fontColor: string;
197
- fontFamily: string;
198
- };
199
- success: {
200
- backgroundColor: string;
201
- fontColor: string;
202
- fontFamily: string;
203
- };
204
- danger: {
205
- backgroundColor: string;
206
- fontColor: string;
207
- fontFamily: string;
208
- };
209
- shadow: {
210
- backgroundColor: string;
211
- fontColor: string;
212
- fontFamily: string;
213
- };
214
- accent: {
215
- backgroundColor: string;
216
- fontColor: string;
217
- fontFamily: string;
218
- };
219
- smoke: {
220
- backgroundColor: string;
221
- fontColor: string;
222
- fontFamily: string;
223
- };
183
+ primary: {
184
+ backgroundColor: string;
185
+ fontColor: string;
186
+ fontFamily: string;
187
+ };
188
+ secondary: {
189
+ backgroundColor: string;
190
+ fontColor: string;
191
+ fontFamily: string;
192
+ };
193
+ warning: {
194
+ backgroundColor: string;
195
+ fontColor: string;
196
+ fontFamily: string;
197
+ };
198
+ success: {
199
+ backgroundColor: string;
200
+ fontColor: string;
201
+ fontFamily: string;
202
+ };
203
+ danger: {
204
+ backgroundColor: string;
205
+ fontColor: string;
206
+ fontFamily: string;
207
+ };
208
+ shadow: {
209
+ backgroundColor: string;
210
+ fontColor: string;
211
+ fontFamily: string;
212
+ };
213
+ accent: {
214
+ backgroundColor: string;
215
+ fontColor: string;
216
+ fontFamily: string;
217
+ };
218
+ smoke: {
219
+ backgroundColor: string;
220
+ fontColor: string;
221
+ fontFamily: string;
224
222
  };
225
223
  boxShadow: (shadow: "dark" | "mediumDark" | "mediumLight" | "light" | "xLight", color?: string | undefined, reverseOffset?: boolean | undefined) => string;
226
224
  borderSize: string;
@@ -446,6 +444,8 @@ export declare const useEntities: () => {
446
444
  borderRadius: string;
447
445
  boxShadow: string;
448
446
  bottomDirectionShadow: string;
447
+ hoverBoxShadow: string;
448
+ hoverBottomDirectionShadow: string;
449
449
  defaultInset: string;
450
450
  };
451
451
  sheet: {
@@ -0,0 +1,10 @@
1
+ export declare const useLongPress: (onLongPress: (event: React.MouseEvent<HTMLInputElement> | React.TouchEvent<HTMLInputElement>) => void, onLongPressEnd: (event: React.MouseEvent<HTMLInputElement> | React.TouchEvent<HTMLInputElement>) => void, onClick: () => void, { isPreventDefault, delay }?: {
2
+ isPreventDefault?: boolean | undefined;
3
+ delay?: number | undefined;
4
+ }) => {
5
+ onMouseDown: (e: React.MouseEvent<HTMLInputElement>) => void;
6
+ onTouchStart: (e: React.TouchEvent<HTMLInputElement>) => void;
7
+ onMouseUp: (e: React.MouseEvent<HTMLInputElement>) => void;
8
+ onMouseLeave: (e: React.MouseEvent<HTMLInputElement>) => void;
9
+ onTouchEnd: (e: React.TouchEvent<HTMLInputElement>) => void;
10
+ };
@@ -1,9 +1,10 @@
1
1
  import { FC } from 'react';
2
- import { TextColor } from "../../atoms/typography/text";
2
+ import { TextColor, WeightType } from "../../atoms/typography/text";
3
3
  import { SizeType, OnMouseEvent, ThemeMode } from "../../types/global";
4
4
  import { entities } from "../../theme/theming/entities";
5
- import { IconType } from "../../exports/atoms";
5
+ import { IconType, IconColors } from "../../exports/atoms";
6
6
  import { DirectionType } from '../tooltip/tooltip';
7
+ import { LiteralUnion } from "../../helpers/hoc-types/entityValueTypes";
7
8
  export declare type ButtonType = ThemeMode | 'smoke';
8
9
  export declare type ButtonProps = {
9
10
  title?: string;
@@ -19,7 +20,11 @@ export declare type ButtonProps = {
19
20
  disabledCaption?: string;
20
21
  disabledDirection?: DirectionType;
21
22
  id?: string;
22
- icon?: IconType;
23
+ icon?: {
24
+ name: IconType;
25
+ fill?: LiteralUnion<IconColors>;
26
+ };
27
+ fontWeight?: WeightType;
23
28
  };
24
29
  export declare type ButtonStyle = typeof entities.buttons.primary;
25
30
  export declare const Button: FC<ButtonProps>;
@@ -1,8 +1,8 @@
1
- import { ButtonsEntity } from "../../theme/theming/entities";
1
+ import { ButtonsEntity, Entities, TextEntity } from "../../theme/theming/entities";
2
2
  import { SizeType } from "../../types/global";
3
3
  import { ButtonType, ButtonStyle } from './button';
4
4
  declare const _default: {
5
- buttonStyles: (type: ButtonType, buttonStyle: ButtonStyle, buttonEntity: ButtonsEntity, size: SizeType, hover?: boolean | undefined, outlined?: boolean | undefined, fullWidth?: boolean | undefined) => import("@emotion/utils").SerializedStyles;
6
- buttonTitle: (buttonEntity: ButtonsEntity, size: SizeType) => import("@emotion/utils").SerializedStyles;
5
+ buttonStyles: (type: ButtonType, buttonStyle: ButtonStyle, entities: Entities, size: SizeType, hover?: boolean | undefined, outlined?: boolean | undefined, fullWidth?: boolean | undefined) => import("@emotion/utils").SerializedStyles;
6
+ buttonTitle: (type: ButtonType, buttonEntity: ButtonsEntity, size: SizeType, textEntity: TextEntity, fontWeight?: "thin" | "regular" | "semiBold" | "bold" | "extraBold" | undefined) => import("@emotion/utils").SerializedStyles;
7
7
  };
8
8
  export default _default;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ export declare type DisplayCardProps = {
3
+ title: string;
4
+ description: string;
5
+ };
6
+ export declare const DisplayCard: FC<DisplayCardProps>;
@@ -1,4 +1,6 @@
1
1
  import { FC } from 'react';
2
+ import { AnimationControls, TargetAndTransition, VariantLabels, Target } from 'framer-motion';
3
+ declare type FramerAnimation = AnimationControls | TargetAndTransition | VariantLabels | boolean;
2
4
  export declare type GridProps = {
3
5
  columnSize: number;
4
6
  rowSize: number;
@@ -7,5 +9,9 @@ export declare type GridProps = {
7
9
  height?: string;
8
10
  overflow?: string;
9
11
  isDense?: boolean;
12
+ animate?: FramerAnimation;
13
+ initial?: boolean | Target | VariantLabels;
14
+ exit?: TargetAndTransition | VariantLabels;
10
15
  };
11
16
  export declare const Grid: FC<GridProps>;
17
+ export {};
@@ -4,5 +4,6 @@ export declare type ImageThumbnailProps = {
4
4
  width: number;
5
5
  height: number;
6
6
  onRemove?: () => void;
7
+ uploadProgress: number;
7
8
  };
8
9
  export declare const ImageThumbnail: FC<ImageThumbnailProps>;
@@ -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" | "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" | 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" | "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" | 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" | 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" | 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" | "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" | 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" | "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" | 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" | 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" | 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" | "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" | 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" | "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" | 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" | 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" | undefined;
50
50
  id: number;
51
51
  } & IconTextLabelProps & React.RefAttributes<HTMLDivElement>)>;
@@ -0,0 +1,26 @@
1
+ import { FC } from 'react';
2
+ import { AcceptedFiles, RejectedFiles } from '../imageUploader/imageUploader';
3
+ export declare type UserImage = {
4
+ url: string;
5
+ isHorizontal: boolean;
6
+ };
7
+ export declare type ImageUploadWidgetProps = {
8
+ title: string;
9
+ maxHeight?: string;
10
+ onClose: () => void;
11
+ onFinished: () => void;
12
+ isOpen: () => void;
13
+ onUpload: (files: {
14
+ accepted: AcceptedFiles;
15
+ rejected: RejectedFiles;
16
+ }, fileList?: FileList | null) => void;
17
+ hasMultiUpload?: boolean;
18
+ userImages?: UserImage[];
19
+ x: number;
20
+ y: number;
21
+ dataLength?: number;
22
+ loadMore?: () => void;
23
+ hasMore?: boolean;
24
+ endMessage?: string;
25
+ };
26
+ export declare const ImageUploadWidget: FC<ImageUploadWidgetProps>;
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ stickersContainer: import("@emotion/react").SerializedStyles;
3
+ };
4
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FileRejection } from 'react-dropzone';
3
+ import { BackgroundColor } from "../../helpers/hoc-types/hocBaseUnion";
3
4
  declare type AcceptedFileType = 'jpg' | 'png' | 'gif' | 'jpeg';
4
5
  export declare type ImageUploaderProps = {
5
6
  onUpload: (files: {
@@ -11,6 +12,7 @@ export declare type ImageUploaderProps = {
11
12
  maxFileSize?: number;
12
13
  maxAcceptedFiles?: number;
13
14
  uploadTitle?: string;
15
+ backgroundColor?: BackgroundColor;
14
16
  };
15
17
  export declare type AcceptedFiles = File[];
16
18
  export declare type RejectedFiles = FileRejection[];
@@ -0,0 +1,5 @@
1
+ import { DisplayCardProps } from "../../exports/molecules";
2
+ import { Meta, Story } from '@storybook/react/types-6-0';
3
+ declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<DisplayCardProps>;
@@ -0,0 +1,5 @@
1
+ import { ImageUploadWidgetProps } from "../../exports/organisms";
2
+ import { Meta, Story } from '@storybook/react/types-6-0';
3
+ declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
4
+ export default _default;
5
+ export declare const StoryName: Story<ImageUploadWidgetProps>;
@@ -444,6 +444,8 @@ declare const drawer: {
444
444
  borderRadius: string;
445
445
  boxShadow: string;
446
446
  bottomDirectionShadow: string;
447
+ hoverBoxShadow: string;
448
+ hoverBottomDirectionShadow: string;
447
449
  defaultInset: string;
448
450
  };
449
451
  declare const navigation: {
@@ -928,6 +930,8 @@ export declare const entities: {
928
930
  borderRadius: string;
929
931
  boxShadow: string;
930
932
  bottomDirectionShadow: string;
933
+ hoverBoxShadow: string;
934
+ hoverBottomDirectionShadow: string;
931
935
  defaultInset: string;
932
936
  };
933
937
  sheet: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "1.7.15",
3
+ "version": "1.7.16",
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",
@@ -59,6 +59,7 @@
59
59
  "react-content-loader": "^5.1.1",
60
60
  "react-dropzone": "^11.4.2",
61
61
  "react-eyedrop": "^5.1.3",
62
+ "react-infinite-scroll-component": "^6.1.0",
62
63
  "react-infinite-scroller": "^1.2.4",
63
64
  "react-lazyload": "^3.1.1",
64
65
  "react-use-dimensions": "^1.2.1",