@sendoutcards/quantum-design-ui 1.7.73 → 1.7.74

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
@@ -14047,6 +14047,7 @@ var Input = function (_a) {
14047
14047
  hasSecurePassword = _l === void 0 ? false : _l,
14048
14048
  maxLength = _a.maxLength,
14049
14049
  isMaxLengthHit = _a.isMaxLengthHit,
14050
+ autoComplete = _a.autoComplete,
14050
14051
  onMaxLengthCap = _a.onMaxLengthCap,
14051
14052
  id = _a.id,
14052
14053
  onBlur = _a.onBlur;
@@ -14306,7 +14307,8 @@ var Input = function (_a) {
14306
14307
  handleOnChange(e.target.value, 0, 1);
14307
14308
  }
14308
14309
  },
14309
- onBlur: handleOnBlur
14310
+ onBlur: handleOnBlur,
14311
+ autoComplete: autoComplete
14310
14312
  }), type === 'number' && jsx(Div, {
14311
14313
  css: styles$x.numberInputButtons(isDisabled),
14312
14314
  zIndex: 1
@@ -22165,8 +22167,7 @@ var ImageUploadWidget = function (_a) {
22165
22167
  };
22166
22168
 
22167
22169
  var ConfigurationCard = function (_a) {
22168
- var _b = _a.graphic,
22169
- graphic = _b === void 0 ? 'none' : _b,
22170
+ var graphic = _a.graphic,
22170
22171
  description = _a.description,
22171
22172
  cost = _a.cost,
22172
22173
  title = _a.title,
@@ -22174,15 +22175,13 @@ var ConfigurationCard = function (_a) {
22174
22175
  onSelect = _a.onSelect,
22175
22176
  configurationId = _a.configurationId,
22176
22177
  itemPriceTitle = _a.itemPriceTitle,
22177
- stackedCardImage = _a.stackedCardImage,
22178
22178
  layout = _a.layout,
22179
- _c = _a.type,
22180
- type = _c === void 0 ? 'addon' : _c,
22179
+ _b = _a.type,
22180
+ type = _b === void 0 ? 'addon' : _b,
22181
22181
  isFeatured = _a.isFeatured,
22182
- _d = _a.backgroundColor,
22183
- backgroundColor = _d === void 0 ? 'background' : _d,
22182
+ _c = _a.backgroundColor,
22183
+ backgroundColor = _c === void 0 ? 'background' : _c,
22184
22184
  isSelected = _a.isSelected;
22185
- var hasNoGraphic = graphic === 'none';
22186
22185
  var width = useWindowSize().width;
22187
22186
  var responsiveLayout = width < 420 ? 'vertical' : layout;
22188
22187
  return jsx(Flex, {
@@ -22191,64 +22190,43 @@ var ConfigurationCard = function (_a) {
22191
22190
  },
22192
22191
  position: "relative",
22193
22192
  boxShadow: "mediumDark",
22194
- backgroundColor: graphic === 'none' && type !== 'upsale' ? backgroundColor : type === 'upsale' ? isSelected ? {
22195
- swatch: 'primaryBrand',
22196
- shade: 'base'
22197
- } : backgroundColor : backgroundColor,
22193
+ backgroundColor: backgroundColor,
22198
22194
  cursor: "pointer",
22199
22195
  inset: {
22200
- vertical: 'x4',
22196
+ vertical: 'x2_5',
22201
22197
  horizontal: 'x2'
22202
22198
  },
22203
22199
  borderWidth: "default",
22204
22200
  borderRadius: "default",
22205
22201
  borderStyle: "solid",
22206
- borderColor: isSelected && type !== 'upsale' && type !== 'info' ? {
22202
+ borderColor: isSelected && type === 'upsale' ? {
22203
+ swatch: 'primaryBrand',
22204
+ shade: 'base'
22205
+ } : isSelected && type === 'addon' ? {
22207
22206
  swatch: 'success',
22208
22207
  shade: 'base'
22209
22208
  } : 'transparent'
22210
22209
  }, jsx(Div, {
22211
22210
  right: "x1",
22212
22211
  position: "absolute",
22213
- top: "x1"
22212
+ top: "x_75"
22214
22213
  }, isSelected && type === 'addon' ? jsx(AnimatedCheckMark, null) : type === 'info' ? jsx(Icon, {
22215
22214
  name: "information",
22216
22215
  size: "small",
22217
22216
  primaryColor: "secondaryBrand"
22218
- }) : type === 'upsale' && isFeatured ? jsx(Capsule, {
22219
- backgroundColor: !isSelected && type === 'upsale' ? {
22217
+ }) : type === 'upsale' && isFeatured && jsx(Capsule, {
22218
+ backgroundColor: {
22220
22219
  swatch: 'primaryBrand',
22221
22220
  shade: 'base'
22222
- } : 'background',
22223
- fontColor: isSelected && type === 'upsale' ? 'primaryBody' : 'inverseBody',
22221
+ },
22222
+ fontColor: "inverseBody",
22224
22223
  title: "Popular"
22225
- }) : jsx(React.Fragment, null)), jsx(Flex, {
22224
+ })), jsx(Flex, {
22226
22225
  justifyContent: "flex-start",
22227
22226
  alignItems: "center",
22228
22227
  width: "100%",
22229
22228
  flexDirection: responsiveLayout || layout === 'vertical' ? 'column' : 'row'
22230
- }, !hasNoGraphic && type !== 'upsale' ? jsx(Div, {
22231
- position: "relative",
22232
- width: {
22233
- xSmall: '100px',
22234
- small: '116px'
22235
- }
22236
- }, jsx(StackedCards, {
22237
- width: 100,
22238
- height: 75,
22239
- stackCount: 5,
22240
- backgroundImage: stackedCardImage
22241
- })) : graphic === 'none' ? jsx(React.Fragment, null) : !isSelected && type === 'upsale' ? jsx(Div, {
22242
- width: "x3",
22243
- height: "x3",
22244
- borderRadius: "circle",
22245
- borderWidth: "thin",
22246
- borderStyle: "solid",
22247
- borderColor: {
22248
- swatch: 'grayScale',
22249
- shade: '_900'
22250
- }
22251
- }) : graphic, jsx(Div, {
22229
+ }, graphic, jsx(Div, {
22252
22230
  minWidth: {
22253
22231
  small: '216px'
22254
22232
  },
@@ -22260,7 +22238,7 @@ var ConfigurationCard = function (_a) {
22260
22238
  left: 'x2'
22261
22239
  }
22262
22240
  }, jsx(Flex, null, jsx(Text, {
22263
- color: isSelected && type === 'upsale' ? 'inverseBody' : 'primaryBody',
22241
+ color: "primaryBody",
22264
22242
  alignment: responsiveLayout ? 'center' : 'left',
22265
22243
  weight: "bold",
22266
22244
  type: "largeBody",
@@ -22269,19 +22247,20 @@ var ConfigurationCard = function (_a) {
22269
22247
  outset: {
22270
22248
  left: 'x1'
22271
22249
  },
22272
- color: isSelected && type === 'upsale' ? 'inverseBody' : 'primaryBody',
22250
+ color: "primaryBody",
22273
22251
  alignment: responsiveLayout ? 'center' : 'left',
22274
22252
  weight: "thin",
22275
22253
  type: "largeBody",
22276
22254
  content: secondaryTitle
22277
22255
  })), jsx(Text, {
22278
- color: isSelected && type === 'upsale' ? 'inverseBody' : 'primaryBody',
22256
+ color: "primaryBody",
22279
22257
  alignment: responsiveLayout ? 'center' : 'left',
22280
22258
  type: {
22281
22259
  xSmall: 'footnote',
22282
22260
  medium: 'caption'
22283
- }
22284
- }, description)), cost && type !== 'info' && jsx(Flex, {
22261
+ },
22262
+ content: description
22263
+ })), cost && type !== 'info' && jsx(Flex, {
22285
22264
  flexDirection: "row",
22286
22265
  outset: responsiveLayout ? 'x0' : {
22287
22266
  left: 'auto'
@@ -22289,14 +22268,14 @@ var ConfigurationCard = function (_a) {
22289
22268
  inset: "x_5",
22290
22269
  alignItems: "center"
22291
22270
  }, jsx(Text, {
22292
- color: isSelected && type === 'upsale' ? 'inverseBody' : 'primaryBody',
22271
+ color: "primaryBody",
22293
22272
  lineHeight: 1,
22294
22273
  weight: "semiBold",
22295
22274
  inset: "0",
22296
22275
  type: "body",
22297
22276
  content: (typeof cost === 'number' ? "$" + cost.toFixed(2) : cost) + " "
22298
22277
  }), jsx(Text, {
22299
- color: isSelected && type === 'upsale' ? 'inverseBody' : 'primaryBody',
22278
+ color: "primaryBody",
22300
22279
  lineHeight: 1,
22301
22280
  inset: "0",
22302
22281
  type: "body",
@@ -23672,8 +23651,7 @@ var BulkSend = function (_a) {
23672
23651
  },
23673
23652
  isSelected: config.configurationId === section.activeConfigurationId,
23674
23653
  cost: config.configurationPrice,
23675
- itemPriceTitle: config.configurationItemPriceTitle,
23676
- stackedCardImage: config.frontPanelImage
23654
+ itemPriceTitle: config.configurationItemPriceTitle
23677
23655
  });
23678
23656
  })), index !== configurationSections.length - 1 && jsx(Div, {
23679
23657
  outset: {
@@ -0,0 +1,17 @@
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>>;
@@ -31,6 +31,7 @@ export declare type InputProps = {
31
31
  hasSecurePassword?: boolean;
32
32
  maxLength?: number;
33
33
  isMaxLengthHit?: boolean;
34
+ autoComplete?: string;
34
35
  onMaxLengthCap?: (isCapped: boolean) => void;
35
36
  onBlur?: (e?: React.FocusEvent) => void;
36
37
  };
@@ -2,7 +2,7 @@ import React, { FC } from 'react';
2
2
  import { HOCColorKeysWithSwatch } from "../../helpers/hoc-types/entityValueTypes";
3
3
  declare type ConfigurationCardType = 'addon' | 'info' | 'upsale';
4
4
  export declare type ConfigurationCardProps = {
5
- graphic?: 'blank' | 'addressed' | 'withStamp' | 'none' | React.ReactNode;
5
+ graphic?: React.ReactNode;
6
6
  title: string;
7
7
  secondaryTitle?: string;
8
8
  description?: string;
@@ -11,7 +11,6 @@ export declare type ConfigurationCardProps = {
11
11
  onSelect?: (configurationId: string) => void;
12
12
  configurationId: string;
13
13
  itemPriceTitle?: string;
14
- stackedCardImage?: string;
15
14
  layout?: 'horizontal' | 'vertical';
16
15
  type?: ConfigurationCardType;
17
16
  isFeatured?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { SliderProgressColor } from "../../../../exports/molecules";
3
- import { ConfirmDialogProps } from "../../../../exports/organisms";
3
+ import { ConfigurationCardProps, ConfirmDialogProps } from "../../../../exports/organisms";
4
4
  export declare type ConfigurationOptionSection = {
5
5
  title: string;
6
6
  description: string;
@@ -10,13 +10,12 @@ export declare type ConfigurationOptionSection = {
10
10
  configurationList: ConfigurationListOption[];
11
11
  };
12
12
  declare type ConfigurationListOption = {
13
- graphicType: 'blank' | 'addressed' | 'withStamp' | 'none';
13
+ graphicType?: ConfigurationCardProps['graphic'];
14
14
  configurationId: string;
15
15
  configurationTitle: string;
16
16
  configurationDescription: string;
17
17
  configurationPrice?: number;
18
18
  configurationItemPriceTitle?: string;
19
- frontPanelImage?: string;
20
19
  };
21
20
  export declare type BulkSendProps = {
22
21
  quantity: number;
@@ -2,7 +2,6 @@ import { Meta } from '@storybook/react/types-6-0';
2
2
  declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
3
3
  export default _default;
4
4
  export declare const ConfigurationCardWithCallback: any;
5
- export declare const UpsaleDialog: any;
6
- export declare const ConfigurationInfoCard: any;
7
- export declare const VerticalCard: any;
8
- export declare const upsale: any;
5
+ export declare const Upsale: any;
6
+ export declare const Info: any;
7
+ export declare const Vertical: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "1.7.73",
3
+ "version": "1.7.74",
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",