@sendoutcards/quantum-design-ui 1.7.42 → 1.7.45

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
@@ -13949,6 +13949,8 @@ var styles$v = {
13949
13949
  var templateObject_1$w, templateObject_2$i;
13950
13950
 
13951
13951
  var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
13952
+ var _a;
13953
+
13952
13954
  var dialog = useEntities().dialog;
13953
13955
  var dialogVariants = {
13954
13956
  open: {
@@ -13968,21 +13970,22 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
13968
13970
  opacity: 0
13969
13971
  }
13970
13972
  };
13971
- var _a = props.zIndex,
13972
- zIndex = _a === void 0 ? 1000 : _a,
13973
+ var _b = props.zIndex,
13974
+ zIndex = _b === void 0 ? 1000 : _b,
13973
13975
  isOpen = props.isOpen,
13974
13976
  onClose = props.onClose,
13975
- _b = props.maxWidth,
13976
- maxWidth = _b === void 0 ? '552px' : _b,
13977
+ _c = props.maxWidth,
13978
+ maxWidth = _c === void 0 ? '552px' : _c,
13977
13979
  maxHeight = props.maxHeight,
13978
13980
  bgElementSelector = props.bgElementSelector,
13979
13981
  isFullScreen = props.isFullScreen,
13980
13982
  closeButtonId = props.closeButtonId,
13981
13983
  insetOverride = props.insetOverride,
13982
13984
  height = props.height,
13985
+ width = props.width,
13983
13986
  children = props.children,
13984
- _c = props.shouldScroll,
13985
- shouldScroll = _c === void 0 ? false : _c;
13987
+ _d = props.shouldScroll,
13988
+ shouldScroll = _d === void 0 ? false : _d;
13986
13989
  return jsx(AnimatePresence, null, isOpen && jsx(Overlay, {
13987
13990
  variants: overlayVariants,
13988
13991
  animate: isOpen ? 'open' : 'closed',
@@ -14005,7 +14008,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
14005
14008
  } : 'x0',
14006
14009
  maxWidth: maxWidth,
14007
14010
  maxHeight: maxHeight,
14008
- width: isFullScreen ? '100%' : undefined,
14011
+ width: (_a = isFullScreen ? '100%' : undefined) !== null && _a !== void 0 ? _a : width,
14009
14012
  height: isFullScreen ? 'calc(100vh - 16px )' : height
14010
14013
  }, shouldScroll ? jsx(Div, {
14011
14014
  height: 'calc(100vh - 32px)',
@@ -17173,12 +17176,20 @@ var Banner = function (_a) {
17173
17176
  var icon = _a.icon,
17174
17177
  message = _a.message,
17175
17178
  status = _a.status,
17176
- children = _a.children;
17179
+ children = _a.children,
17180
+ _b = _a.outlined,
17181
+ outlined = _b === void 0 ? true : _b;
17177
17182
  return jsx(Div, {
17178
17183
  backgroundColor: {
17179
17184
  swatch: status === 'success' ? 'success' : status === 'warning' ? 'warning' : 'danger',
17180
- shade: 'base'
17185
+ shade: outlined ? '_1000' : 'base'
17181
17186
  },
17187
+ borderWidth: outlined ? 'default' : undefined,
17188
+ borderStyle: outlined ? 'solid' : undefined,
17189
+ borderColor: outlined ? {
17190
+ swatch: status === 'success' ? 'success' : status === 'warning' ? 'warning' : 'danger',
17191
+ shade: 'base'
17192
+ } : undefined,
17182
17193
  width: "100%",
17183
17194
  inset: {
17184
17195
  vertical: 'x2',
@@ -17197,10 +17208,10 @@ var Banner = function (_a) {
17197
17208
  }, jsx(Icon, {
17198
17209
  name: icon,
17199
17210
  size: "small",
17200
- primaryColor: "inverseBodyText"
17211
+ primaryColor: outlined ? 'primaryBodyText' : 'inverseHeadingText'
17201
17212
  })), message && jsx(Text, {
17202
17213
  content: message,
17203
- color: "inverseBody",
17214
+ color: outlined ? 'primaryBody' : 'inverseHeading',
17204
17215
  type: {
17205
17216
  xSmall: 'footnote',
17206
17217
  small: 'caption'
@@ -21532,26 +21543,29 @@ var ConfigurationCard = function (_a) {
21532
21543
  stackedCardImage = _a.stackedCardImage,
21533
21544
  layout = _a.layout,
21534
21545
  _c = _a.type,
21535
- type = _c === void 0 ? 'addon' : _c;
21546
+ type = _c === void 0 ? 'addon' : _c,
21547
+ isFeatured = _a.isFeatured,
21548
+ _d = _a.backgroundColor,
21549
+ backgroundColor = _d === void 0 ? 'background' : _d;
21536
21550
 
21537
- var _d = useState(false),
21538
- isSelected = _d[0],
21539
- setIsSelected = _d[1];
21551
+ var _e = useState(false),
21552
+ isSelected = _e[0],
21553
+ setIsSelected = _e[1];
21540
21554
 
21541
21555
  var hasNoGraphic = graphic === 'none';
21542
21556
  var width = useWindowSize().width;
21543
21557
  var responsiveLayout = width < 420 ? 'vertical' : layout;
21544
21558
  return jsx(Flex, {
21545
21559
  onClick: function () {
21546
- onSelect(configurationId);
21560
+ onSelect === null || onSelect === void 0 ? void 0 : onSelect(configurationId);
21547
21561
  setIsSelected(!isSelected);
21548
21562
  },
21549
21563
  position: "relative",
21550
21564
  boxShadow: "mediumDark",
21551
- backgroundColor: graphic === 'none' && type !== 'upsale' ? 'background' : type === 'upsale' ? isSelected ? {
21565
+ backgroundColor: graphic === 'none' && type !== 'upsale' ? backgroundColor : type === 'upsale' ? isSelected ? {
21552
21566
  swatch: 'primaryBrand',
21553
21567
  shade: 'base'
21554
- } : 'foreground' : 'foreground',
21568
+ } : backgroundColor : backgroundColor,
21555
21569
  cursor: "pointer",
21556
21570
  inset: {
21557
21571
  vertical: 'x4',
@@ -21572,14 +21586,14 @@ var ConfigurationCard = function (_a) {
21572
21586
  name: "information",
21573
21587
  size: "small",
21574
21588
  primaryColor: "secondaryBrand"
21575
- }) : type === 'upsale' && jsx(Capsule, {
21589
+ }) : type === 'upsale' && isFeatured ? jsx(Capsule, {
21576
21590
  backgroundColor: !isSelected && type === 'upsale' ? {
21577
21591
  swatch: 'primaryBrand',
21578
21592
  shade: 'base'
21579
21593
  } : 'background',
21580
21594
  fontColor: isSelected && type === 'upsale' ? 'primaryBody' : 'inverseBody',
21581
21595
  title: "Popular"
21582
- })), jsx(Flex, {
21596
+ }) : jsx(React.Fragment, null)), jsx(Flex, {
21583
21597
  justifyContent: "flex-start",
21584
21598
  alignItems: "center",
21585
21599
  width: "100%",
@@ -21595,7 +21609,7 @@ var ConfigurationCard = function (_a) {
21595
21609
  height: 75,
21596
21610
  stackCount: 5,
21597
21611
  backgroundImage: stackedCardImage
21598
- })) : !isSelected && type === 'upsale' ? jsx(Div, {
21612
+ })) : graphic === 'none' ? jsx(React.Fragment, null) : !isSelected && type === 'upsale' ? jsx(Div, {
21599
21613
  width: "x3",
21600
21614
  height: "x3",
21601
21615
  borderRadius: "circle",
@@ -21620,10 +21634,7 @@ var ConfigurationCard = function (_a) {
21620
21634
  color: isSelected && type === 'upsale' ? 'inverseBody' : 'primaryBody',
21621
21635
  alignment: responsiveLayout ? 'center' : 'left',
21622
21636
  weight: "bold",
21623
- type: {
21624
- xSmall: 'largeBody',
21625
- medium: 'subtitle'
21626
- },
21637
+ type: "largeBody",
21627
21638
  content: title
21628
21639
  }), jsx(Text, {
21629
21640
  color: isSelected && type === 'upsale' ? 'inverseBody' : 'primaryBody',
@@ -21637,20 +21648,20 @@ var ConfigurationCard = function (_a) {
21637
21648
  outset: responsiveLayout ? 'x0' : {
21638
21649
  left: 'auto'
21639
21650
  },
21640
- inset: "x1",
21651
+ inset: "x_5",
21641
21652
  alignItems: "center"
21642
21653
  }, jsx(Text, {
21643
21654
  color: isSelected && type === 'upsale' ? 'inverseBody' : 'primaryBody',
21644
- weight: type === 'upsale' ? 'bold' : 'regular',
21645
21655
  lineHeight: 1,
21656
+ weight: "semiBold",
21646
21657
  inset: "0",
21647
- type: type === 'upsale' ? 'subtitle' : 'footnote',
21648
- content: " $" + (typeof cost === 'number' ? "" + cost.toFixed(2) : cost) + " "
21658
+ type: "body",
21659
+ content: (typeof cost === 'number' ? "$" + cost.toFixed(2) : cost) + " "
21649
21660
  }), jsx(Text, {
21650
21661
  color: isSelected && type === 'upsale' ? 'inverseBody' : 'primaryBody',
21651
21662
  lineHeight: 1,
21652
21663
  inset: "0",
21653
- type: "footnote",
21664
+ type: "body",
21654
21665
  content: itemPriceTitle,
21655
21666
  whiteSpace: "nowrap"
21656
21667
  }))));
@@ -21664,7 +21675,11 @@ var UpsaleOptions = function (_a) {
21664
21675
  showCheckoutView = _a.showCheckoutView,
21665
21676
  handleShouldShowCheckoutView = _a.handleShouldShowCheckoutView,
21666
21677
  children = _a.children,
21667
- activeSelectedOption = _a.activeSelectedOption;
21678
+ activeSelectedOption = _a.activeSelectedOption,
21679
+ extraLink = _a.extraLink,
21680
+ _b = _a.defaultNumOptionsShown,
21681
+ defaultNumOptionsShown = _b === void 0 ? selectableOptions.length : _b,
21682
+ submitAction = _a.submitAction;
21668
21683
  var shouldShowCheckoutScreen = selectedOption && showCheckoutView;
21669
21684
  return jsx(Div, {
21670
21685
  height: "100%",
@@ -21710,17 +21725,34 @@ var UpsaleOptions = function (_a) {
21710
21725
  isSelected: true
21711
21726
  })), children) : jsx(VStack, {
21712
21727
  gap: "x2"
21713
- }, selectableOptions.map(function (option, index) {
21728
+ }, selectableOptions.filter(function (_, index) {
21729
+ return index < defaultNumOptionsShown;
21730
+ }).map(function (option, index) {
21714
21731
  var _a;
21715
21732
 
21716
21733
  return jsx(RadioOptionCard, _extends({}, option, {
21717
21734
  key: index,
21735
+ optionId: option.optionId,
21718
21736
  onSelect: function () {
21719
21737
  return handleSelectedOption(option.optionId);
21720
21738
  },
21721
21739
  isSelected: (_a = (activeSelectedOption && selectedOption) === option.optionId) !== null && _a !== void 0 ? _a : false
21722
21740
  }));
21723
- })))));
21741
+ })), extraLink && jsx(Anchor, {
21742
+ title: extraLink.title,
21743
+ onClick: extraLink.onClick,
21744
+ href: extraLink.href,
21745
+ size: "small",
21746
+ color: "primaryBody",
21747
+ outset: "0 auto"
21748
+ }), submitAction && jsx(Button, {
21749
+ title: submitAction.title,
21750
+ type: submitAction.type,
21751
+ onClick: submitAction.onClick,
21752
+ fullWidth: submitAction.isFullWidth,
21753
+ disabled: submitAction.isDisabled,
21754
+ size: "large"
21755
+ }))));
21724
21756
  };
21725
21757
 
21726
21758
  var SOC_FRONT_Z_INDEX = 103;
@@ -21732,7 +21764,6 @@ var UpsaleDialog = function (_a) {
21732
21764
  selectableOptions = _a.selectableOptions,
21733
21765
  isOpen = _a.isOpen,
21734
21766
  setIsDialogOpen = _a.setIsDialogOpen,
21735
- submitAction = _a.submitAction,
21736
21767
  upsaleContent = _a.upsaleContent,
21737
21768
  children = _a.children,
21738
21769
  selectedOption = _a.selectedOption,
@@ -21747,7 +21778,11 @@ var UpsaleDialog = function (_a) {
21747
21778
  successComponent = _a.successComponent,
21748
21779
  upsaleContentTitle = _a.upsaleContentTitle,
21749
21780
  _c = _a.sponsorId,
21750
- sponsorId = _c === void 0 ? '9070' : _c;
21781
+ sponsorId = _c === void 0 ? '9070' : _c,
21782
+ extraLink = _a.extraLink,
21783
+ defaultNumOptionsShown = _a.defaultNumOptionsShown,
21784
+ submitAction = _a.submitAction,
21785
+ acceptSelectedAction = _a.acceptSelectedAction;
21751
21786
 
21752
21787
  var _d = React.useState(false),
21753
21788
  shouldShowCheckoutView = _d[0],
@@ -21769,6 +21804,15 @@ var UpsaleDialog = function (_a) {
21769
21804
  };
21770
21805
 
21771
21806
  var activeSelectedOption = findOption(selectedOption);
21807
+
21808
+ var handleOnClick = function () {
21809
+ if (acceptSelectedAction) {
21810
+ acceptSelectedAction.onClick();
21811
+ } else {
21812
+ setShouldShowCheckoutView(true);
21813
+ }
21814
+ };
21815
+
21772
21816
  return jsx(Dialog, {
21773
21817
  ref: ref,
21774
21818
  isOpen: isOpen,
@@ -21780,7 +21824,8 @@ var UpsaleDialog = function (_a) {
21780
21824
  maxWidth: maxWidth,
21781
21825
  maxHeight: maxHeight,
21782
21826
  height: isMobile ? 'unset' : '80%',
21783
- shouldScroll: true
21827
+ shouldScroll: true,
21828
+ width: "100%"
21784
21829
  }, successComponent ? jsx(Flex, {
21785
21830
  width: width + "px",
21786
21831
  height: height + "px",
@@ -21841,8 +21886,15 @@ var UpsaleDialog = function (_a) {
21841
21886
  handleShouldShowCheckoutView: function (value) {
21842
21887
  return setShouldShowCheckoutView(value);
21843
21888
  },
21844
- activeSelectedOption: activeSelectedOption[0]
21845
- }, children), jsx(Flex, {
21889
+ activeSelectedOption: activeSelectedOption[0],
21890
+ extraLink: {
21891
+ title: extraLink === null || extraLink === void 0 ? void 0 : extraLink.title,
21892
+ onClick: extraLink === null || extraLink === void 0 ? void 0 : extraLink.onClick,
21893
+ href: extraLink === null || extraLink === void 0 ? void 0 : extraLink.href
21894
+ },
21895
+ defaultNumOptionsShown: defaultNumOptionsShown,
21896
+ submitAction: submitAction
21897
+ }, children), !shouldShowCheckoutView && jsx(Flex, {
21846
21898
  justifyContent: "center",
21847
21899
  position: isMobile ? 'fixed' : 'relative',
21848
21900
  bottom: isMobile ? '0' : 'unset',
@@ -21851,18 +21903,14 @@ var UpsaleDialog = function (_a) {
21851
21903
  width: "100%",
21852
21904
  backgroundColor: isMobile ? 'foreground' : undefined,
21853
21905
  boxShadow: isMobile ? 'mediumDark' : undefined,
21854
- zIndex: SOC_FRONT_Z_INDEX,
21855
- left: "0"
21906
+ left: "0",
21907
+ zIndex: isMobile ? 10 : undefined
21856
21908
  }, jsx(Button, {
21857
- type: shouldShowCheckoutView && submitAction.type ? submitAction.type : 'primary',
21909
+ type: 'primary',
21858
21910
  size: "large",
21859
- title: shouldShowCheckoutView ? submitAction.title : 'Continue to Checkout',
21860
- disabled: shouldShowCheckoutView ? submitAction.isDisabled : !selectedOption.length,
21861
- onClick: shouldShowCheckoutView && submitAction ? function () {
21862
- return submitAction.onClick();
21863
- } : function () {
21864
- return setShouldShowCheckoutView(true);
21865
- }
21911
+ title: acceptSelectedAction ? acceptSelectedAction.title : 'Continue to Checkout',
21912
+ disabled: !selectedOption.length,
21913
+ onClick: handleOnClick
21866
21914
  }))), !isMobile && jsx(Div, {
21867
21915
  width: "x3",
21868
21916
  order: 2
@@ -21871,7 +21919,10 @@ var UpsaleDialog = function (_a) {
21871
21919
  width: isMobile ? '100%' : 'calc(50% - 12px)',
21872
21920
  order: 1
21873
21921
  }, jsx(Div, {
21874
- width: "100%"
21922
+ width: "100%",
21923
+ inset: {
21924
+ top: '1.4rem'
21925
+ }
21875
21926
  }, jsx(Accordion, {
21876
21927
  defaultActiveKeys: [1],
21877
21928
  arrowLocation: "right",
@@ -21881,6 +21932,11 @@ var UpsaleDialog = function (_a) {
21881
21932
  sections: [{
21882
21933
  body: jsx(React.Fragment, null, upsaleContent),
21883
21934
  heading: jsx(Div, {
21935
+ inset: isMobile ? {
21936
+ left: '4.1rem'
21937
+ } : {
21938
+ left: 'x4'
21939
+ },
21884
21940
  width: "100%",
21885
21941
  display: "flex",
21886
21942
  justifyContent: "space-between",
@@ -21910,7 +21966,8 @@ var UpsaleDialog = function (_a) {
21910
21966
  bottom: 'x4'
21911
21967
  },
21912
21968
  left: "50%",
21913
- transform: "translateX(-50%)"
21969
+ transform: "translateX(-50%)",
21970
+ zIndex: !isMobile ? SOC_FRONT_Z_INDEX : undefined
21914
21971
  }, jsx(Separator, {
21915
21972
  orientation: "horizontal",
21916
21973
  caption: "Want to try it first?",
@@ -21937,9 +21994,14 @@ var UpsaleDialog = function (_a) {
21937
21994
  var ComparisonIncludesList = function (_a) {
21938
21995
  var items = _a.items,
21939
21996
  isMinified = _a.isMinified;
21940
- return jsx(Card, {
21997
+ return jsx(Div, {
21998
+ position: "relative",
21999
+ display: "flex",
22000
+ flexDirection: "column",
22001
+ alignItems: "center",
22002
+ justifyContent: "center",
21941
22003
  backgroundColor: "background",
21942
- inset: '1.5rem'
22004
+ inset: "1.5rem"
21943
22005
  }, jsx(Div, {
21944
22006
  width: "100%"
21945
22007
  }, jsx(VStack, {
@@ -22637,9 +22699,9 @@ var AffiliateUpsalePromotionWidget = function (_a) {
22637
22699
 
22638
22700
  var getContent = function (type) {
22639
22701
  var title = type === 'customer' ? 'Love our products & services?' : type === 'freeAffiliate' ? 'Maximize your business building efforts!' : 'Build your Greener Still Business';
22640
- var description = type === 'customer' ? 'Are you finding yourself sharing with others? What if we told you that you could earn additional streams of income with Greener Still? It’s as easy as FREE!' : type === 'freeAffiliate' ? 'Become a Greener Still Affiliate Pro and get the GS Pro app. Sharing our products & services and prospect follow-up has never been easier.' : 'Focus on 2 + 1 = $50 every month. Commit to repeating this every month, twice a month, or every week and grow your Greener Still business!';
22702
+ var description = type === 'customer' ? 'Are you finding yourself sharing with others? What if we told you that you could earn additional streams of income with Greener Still? It’s as easy as FREE!' : type === 'freeAffiliate' ? 'Become a Greener Still Affiliate Pro and get the GS Pro app. Sharing our products & services and prospect follow-up has never been easier.' : 'Focus on duplicating your efforts to grow your business. Commit to repeating this every month, twice a month, or every week and grow your Greener Still business!';
22641
22703
  var buttonTitle = type === 'customer' ? 'Unlock Your Opportunity' : type === 'freeAffiliate' ? 'Upgrade Now' : 'Comp Plan Training';
22642
- var url = type === 'proAffiliate' ? 'https://youtu.be/DCOsOCIvvgA' : 'https://app.sendoutcards.com/?client=greenerstill&affiliatejoin';
22704
+ var url = type === 'proAffiliate' ? 'https://www.facebook.com/groups/sendoutcardscorporate/permalink/5098162643579731' : 'https://app.sendoutcards.com/?client=greenerstill&affiliatejoin';
22643
22705
  return {
22644
22706
  title: title,
22645
22707
  description: description,
@@ -23083,12 +23145,16 @@ var PaperTypeModal = function (_a) {
23083
23145
  };
23084
23146
 
23085
23147
  var comparisonItems37 = [{
23086
- title: '30 Monthly Card Sends (includes both Heartfelt and System Sends)',
23087
- description: '$1.75 for each additional card over 30. Postage not included on any card sends',
23148
+ title: '30 Monthly Cards (includes both Heartfelt and System Cards)',
23149
+ description: '$1.75 for each additional card over 30. Stamps not included on any System Card sends.',
23088
23150
  isIncluded: true
23089
23151
  }, {
23090
23152
  title: 'Contact Manager',
23091
- description: 'Keep track of birthdays, special occasions, reminders, include notes if you choose, and get a history of every card sent.',
23153
+ description: 'Store your contact information, birthdays, special occasions, reminders, include notes, and get a history of every card sent.',
23154
+ isIncluded: true
23155
+ }, {
23156
+ title: '20% off gifts',
23157
+ description: 'Each gift that you add to greeting cards gets you even more savings!',
23092
23158
  isIncluded: true
23093
23159
  }, {
23094
23160
  title: 'Unlimited Photo Postcards',
@@ -23096,15 +23162,11 @@ var comparisonItems37 = [{
23096
23162
  isIncluded: false
23097
23163
  }, {
23098
23164
  title: 'Unlimited Heartfelt Prompting cards',
23099
- description: 'Send unlimited 5x7 greeting cards, stamps included. Mailed for you. Immediately!',
23165
+ description: 'Send an unlimited amount of 5x7 greeting cards, also with stamps included. We stuff, stamp, and mail them for you immediately!',
23100
23166
  isIncluded: false
23101
23167
  }, {
23102
- title: '20% off gifts',
23103
- description: '',
23104
- isIncluded: true
23105
- }, {
23106
- title: '30% off shipping',
23107
- description: '',
23168
+ title: '30% Savings on Shipping',
23169
+ description: 'Get even more savings when you ship your greeting card with a gift. We have you covered!',
23108
23170
  isIncluded: false
23109
23171
  }];
23110
23172
  var comparisonItems97 = [{
@@ -23113,23 +23175,23 @@ var comparisonItems97 = [{
23113
23175
  isIncluded: true
23114
23176
  }, {
23115
23177
  title: 'UNLIMITED Heartfelt Prompting Cards!',
23116
- description: 'Send unlimited 5x7 greeting cards, stamps included. Mailed for you. Immediately!',
23178
+ description: 'Send an unlimited amount of 5x7 greeting cards, also with stamps included. We stuff, stamp, and mail them for you immediately!',
23117
23179
  isIncluded: true
23118
23180
  }, {
23119
23181
  title: 'Contact Manager',
23120
- description: 'Keep track of birthdays, special occasions, reminders, include notes if you choose, and get a history of every card sent.',
23182
+ description: 'Store your contact information, birthdays, special occasions, reminders, include notes, and get a history of every card sent.',
23121
23183
  isIncluded: true
23122
23184
  }, {
23123
- title: '30 Automated Card sends!',
23124
- description: 'Our Automated sending process does all the work for you, schedule, send to one or multiple people, even take advantage of our drip campaign feature!',
23185
+ title: '30 System Cards!',
23186
+ description: 'Schedule, send to one or multiple people, even take advantage of our drip campaign feature!',
23125
23187
  isIncluded: true
23126
23188
  }, {
23127
- title: '30% off gifts',
23128
- description: '',
23189
+ title: '30% Discount on Gifts',
23190
+ description: 'Each gift that you add to greeting cards gets you even more savings!',
23129
23191
  isIncluded: true
23130
23192
  }, {
23131
- title: '30% off shipping',
23132
- description: '',
23193
+ title: '30% Savings on Shipping',
23194
+ description: 'Get even more savings when you ship your greeting card with a gift. We have you covered!',
23133
23195
  isIncluded: true
23134
23196
  }];
23135
23197
 
@@ -23144,7 +23206,6 @@ var SubscriptionUpsaleDialog = function (_a) {
23144
23206
  setIsDialogOpen = _a.setIsDialogOpen,
23145
23207
  _b = _a.optionFormLocation,
23146
23208
  optionFormLocation = _b === void 0 ? 'right' : _b,
23147
- submitAction = _a.submitAction,
23148
23209
  children = _a.children,
23149
23210
  selectedOption = _a.selectedOption,
23150
23211
  removeSelectedOption = _a.removeSelectedOption,
@@ -23164,7 +23225,6 @@ var SubscriptionUpsaleDialog = function (_a) {
23164
23225
  handleSelectedOption: function (optionId) {
23165
23226
  return handleSelectedOption(optionId);
23166
23227
  },
23167
- submitAction: submitAction,
23168
23228
  removeSelectedOption: removeSelectedOption,
23169
23229
  upsaleContentTitle: upsaleContentTitle,
23170
23230
  upsaleContent: jsx(ComparisonIncludesList, {
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Responsive, LiteralUnion, HOCSpacingKeys } from "../../helpers/hoc-types/entityValueTypes";
3
+ import { Height, Width } from "../../helpers/hoc-types/hocBaseUnion";
3
4
  export declare type DialogProps = {
4
5
  zIndex?: number;
5
6
  isOpen: boolean;
@@ -10,7 +11,8 @@ export declare type DialogProps = {
10
11
  isFullScreen?: boolean;
11
12
  closeButtonId?: string;
12
13
  insetOverride?: HOCSpacingKeys;
13
- height?: Responsive<LiteralUnion<HOCSpacingKeys>> | LiteralUnion<HOCSpacingKeys>;
14
+ height?: Height;
15
+ width?: Width;
14
16
  shouldScroll?: boolean;
15
17
  };
16
18
  export declare const Dialog: React.ForwardRefExoticComponent<DialogProps & {
@@ -4,6 +4,7 @@ export declare type BannerProps = {
4
4
  icon?: IconType;
5
5
  message?: string;
6
6
  status: StatusType;
7
+ outlined?: boolean;
7
8
  };
8
9
  export declare type StatusType = 'success' | 'warning' | 'danger';
9
10
  export declare const Banner: FC<BannerProps>;
@@ -1,17 +1,20 @@
1
1
  import React, { FC } from 'react';
2
- declare type ConfigurationCardType = 'addon' | 'upsale' | 'info';
2
+ import { HOCColorKeysWithSwatch } from "../../helpers/hoc-types/entityValueTypes";
3
+ declare type ConfigurationCardType = 'addon' | 'info' | 'upsale';
3
4
  export declare type ConfigurationCardProps = {
4
5
  graphic?: 'blank' | 'addressed' | 'withStamp' | 'none' | React.ReactNode;
5
6
  title: string;
6
- description: string;
7
+ description?: string;
7
8
  cost?: number | string;
8
- isSelected: boolean;
9
- onSelect: (configurationId: string) => void;
9
+ isSelected?: boolean;
10
+ onSelect?: (configurationId: string) => void;
10
11
  configurationId: string;
11
12
  itemPriceTitle?: string;
12
13
  stackedCardImage?: string;
13
14
  layout?: 'horizontal' | 'vertical';
14
15
  type?: ConfigurationCardType;
16
+ isFeatured?: boolean;
17
+ backgroundColor?: HOCColorKeysWithSwatch;
15
18
  };
16
19
  export declare const ConfigurationCard: FC<ConfigurationCardProps>;
17
20
  export {};
@@ -1,18 +1,20 @@
1
1
  import React, { FC } from 'react';
2
- import { ButtonType } from "../../exports/molecules";
3
- import { UpsaleOptionsType } from './upsaleOptions';
2
+ import { UpsaleOptionsType, SubmitOptionType } from './upsaleOptions';
4
3
  import { Responsive, LiteralUnion, HOCSpacingKeys } from "../../helpers/hoc-types/entityValueTypes";
4
+ export declare type ExtraLinkType = {
5
+ title: string;
6
+ onClick?: () => void;
7
+ href?: string;
8
+ };
9
+ export declare type AcceptSelectedOptionType = {
10
+ title: string;
11
+ onClick: () => void;
12
+ };
5
13
  export declare type UpsaleDialogProps = {
6
14
  title: string;
7
15
  description: string;
8
16
  checkoutTitle: string;
9
17
  checkoutDescription: string;
10
- submitAction: {
11
- title: string;
12
- isDisabled: boolean;
13
- onClick: () => void;
14
- type?: ButtonType;
15
- };
16
18
  upsaleContent: React.ReactNode;
17
19
  optionFormLocation?: 'right' | 'left';
18
20
  isOpen: boolean;
@@ -26,5 +28,9 @@ export declare type UpsaleDialogProps = {
26
28
  successComponent?: React.ReactNode;
27
29
  upsaleContentTitle?: string;
28
30
  sponsorId?: string;
31
+ extraLink?: ExtraLinkType;
32
+ defaultNumOptionsShown?: number;
33
+ submitAction?: SubmitOptionType;
34
+ acceptSelectedAction?: AcceptSelectedOptionType;
29
35
  } & UpsaleOptionsType;
30
36
  export declare const UpsaleDialog: FC<UpsaleDialogProps>;
@@ -1,4 +1,13 @@
1
1
  import React, { FC } from 'react';
2
+ import { AnchorProps } from "../../exports/atoms";
3
+ import { ButtonType } from "../../exports/molecules";
4
+ export declare type SubmitOptionType = {
5
+ title: string;
6
+ type?: ButtonType;
7
+ onClick: (optionId?: string) => void;
8
+ isFullWidth?: boolean;
9
+ isDisabled?: boolean;
10
+ };
2
11
  export declare type UpsaleOptionType = {
3
12
  title: string;
4
13
  subtitle?: string;
@@ -13,9 +22,12 @@ export declare type UpsaleOptionsType = {
13
22
  children: React.ReactNode;
14
23
  activeSelectedOption?: UpsaleOptionType;
15
24
  };
16
- declare type UpsaleOptionsProps = UpsaleOptionsType & {
25
+ declare type UpsaleOptionsProps = {
17
26
  showCheckoutView: boolean;
27
+ extraLink?: AnchorProps;
28
+ defaultNumOptionsShown?: number;
18
29
  handleShouldShowCheckoutView: (value: boolean) => void;
19
- };
30
+ submitAction?: SubmitOptionType;
31
+ } & UpsaleOptionsType;
20
32
  export declare const UpsaleOptions: FC<UpsaleOptionsProps>;
21
33
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "1.7.42",
3
+ "version": "1.7.45",
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",