@sendoutcards/quantum-design-ui 1.7.42 → 1.7.43

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)',
@@ -21732,7 +21735,6 @@ var UpsaleDialog = function (_a) {
21732
21735
  selectableOptions = _a.selectableOptions,
21733
21736
  isOpen = _a.isOpen,
21734
21737
  setIsDialogOpen = _a.setIsDialogOpen,
21735
- submitAction = _a.submitAction,
21736
21738
  upsaleContent = _a.upsaleContent,
21737
21739
  children = _a.children,
21738
21740
  selectedOption = _a.selectedOption,
@@ -21780,7 +21782,8 @@ var UpsaleDialog = function (_a) {
21780
21782
  maxWidth: maxWidth,
21781
21783
  maxHeight: maxHeight,
21782
21784
  height: isMobile ? 'unset' : '80%',
21783
- shouldScroll: true
21785
+ shouldScroll: true,
21786
+ width: "100%"
21784
21787
  }, successComponent ? jsx(Flex, {
21785
21788
  width: width + "px",
21786
21789
  height: height + "px",
@@ -21842,7 +21845,7 @@ var UpsaleDialog = function (_a) {
21842
21845
  return setShouldShowCheckoutView(value);
21843
21846
  },
21844
21847
  activeSelectedOption: activeSelectedOption[0]
21845
- }, children), jsx(Flex, {
21848
+ }, children), !shouldShowCheckoutView && jsx(Flex, {
21846
21849
  justifyContent: "center",
21847
21850
  position: isMobile ? 'fixed' : 'relative',
21848
21851
  bottom: isMobile ? '0' : 'unset',
@@ -21851,16 +21854,14 @@ var UpsaleDialog = function (_a) {
21851
21854
  width: "100%",
21852
21855
  backgroundColor: isMobile ? 'foreground' : undefined,
21853
21856
  boxShadow: isMobile ? 'mediumDark' : undefined,
21854
- zIndex: SOC_FRONT_Z_INDEX,
21855
- left: "0"
21857
+ left: "0",
21858
+ zIndex: isMobile ? 10 : undefined
21856
21859
  }, jsx(Button, {
21857
- type: shouldShowCheckoutView && submitAction.type ? submitAction.type : 'primary',
21860
+ type: 'primary',
21858
21861
  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 () {
21862
+ title: 'Continue to Checkout',
21863
+ disabled: !selectedOption.length,
21864
+ onClick: function () {
21864
21865
  return setShouldShowCheckoutView(true);
21865
21866
  }
21866
21867
  }))), !isMobile && jsx(Div, {
@@ -21871,7 +21872,10 @@ var UpsaleDialog = function (_a) {
21871
21872
  width: isMobile ? '100%' : 'calc(50% - 12px)',
21872
21873
  order: 1
21873
21874
  }, jsx(Div, {
21874
- width: "100%"
21875
+ width: "100%",
21876
+ inset: {
21877
+ top: '1.4rem'
21878
+ }
21875
21879
  }, jsx(Accordion, {
21876
21880
  defaultActiveKeys: [1],
21877
21881
  arrowLocation: "right",
@@ -21881,6 +21885,11 @@ var UpsaleDialog = function (_a) {
21881
21885
  sections: [{
21882
21886
  body: jsx(React.Fragment, null, upsaleContent),
21883
21887
  heading: jsx(Div, {
21888
+ inset: isMobile ? {
21889
+ left: '4.1rem'
21890
+ } : {
21891
+ left: 'x4'
21892
+ },
21884
21893
  width: "100%",
21885
21894
  display: "flex",
21886
21895
  justifyContent: "space-between",
@@ -21910,7 +21919,8 @@ var UpsaleDialog = function (_a) {
21910
21919
  bottom: 'x4'
21911
21920
  },
21912
21921
  left: "50%",
21913
- transform: "translateX(-50%)"
21922
+ transform: "translateX(-50%)",
21923
+ zIndex: !isMobile ? SOC_FRONT_Z_INDEX : undefined
21914
21924
  }, jsx(Separator, {
21915
21925
  orientation: "horizontal",
21916
21926
  caption: "Want to try it first?",
@@ -21937,9 +21947,14 @@ var UpsaleDialog = function (_a) {
21937
21947
  var ComparisonIncludesList = function (_a) {
21938
21948
  var items = _a.items,
21939
21949
  isMinified = _a.isMinified;
21940
- return jsx(Card, {
21950
+ return jsx(Div, {
21951
+ position: "relative",
21952
+ display: "flex",
21953
+ flexDirection: "column",
21954
+ alignItems: "center",
21955
+ justifyContent: "center",
21941
21956
  backgroundColor: "background",
21942
- inset: '1.5rem'
21957
+ inset: "1.5rem"
21943
21958
  }, jsx(Div, {
21944
21959
  width: "100%"
21945
21960
  }, jsx(VStack, {
@@ -22637,9 +22652,9 @@ var AffiliateUpsalePromotionWidget = function (_a) {
22637
22652
 
22638
22653
  var getContent = function (type) {
22639
22654
  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!';
22655
+ 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
22656
  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';
22657
+ var url = type === 'proAffiliate' ? 'https://www.facebook.com/groups/sendoutcardscorporate/permalink/5098162643579731' : 'https://app.sendoutcards.com/?client=greenerstill&affiliatejoin';
22643
22658
  return {
22644
22659
  title: title,
22645
22660
  description: description,
@@ -23083,12 +23098,16 @@ var PaperTypeModal = function (_a) {
23083
23098
  };
23084
23099
 
23085
23100
  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',
23101
+ title: '30 Monthly Cards (includes both Heartfelt and System Cards)',
23102
+ description: '$1.75 for each additional card over 30. Stamps not included on any System Card sends.',
23088
23103
  isIncluded: true
23089
23104
  }, {
23090
23105
  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.',
23106
+ description: 'Store your contact information, birthdays, special occasions, reminders, include notes, and get a history of every card sent.',
23107
+ isIncluded: true
23108
+ }, {
23109
+ title: '20% off gifts',
23110
+ description: 'Each gift that you add to greeting cards gets you even more savings!',
23092
23111
  isIncluded: true
23093
23112
  }, {
23094
23113
  title: 'Unlimited Photo Postcards',
@@ -23096,15 +23115,11 @@ var comparisonItems37 = [{
23096
23115
  isIncluded: false
23097
23116
  }, {
23098
23117
  title: 'Unlimited Heartfelt Prompting cards',
23099
- description: 'Send unlimited 5x7 greeting cards, stamps included. Mailed for you. Immediately!',
23118
+ description: 'Send an unlimited amount of 5x7 greeting cards, also with stamps included. We stuff, stamp, and mail them for you immediately!',
23100
23119
  isIncluded: false
23101
23120
  }, {
23102
- title: '20% off gifts',
23103
- description: '',
23104
- isIncluded: true
23105
- }, {
23106
- title: '30% off shipping',
23107
- description: '',
23121
+ title: '30% Savings on Shipping',
23122
+ description: 'Get even more savings when you ship your greeting card with a gift. We have you covered!',
23108
23123
  isIncluded: false
23109
23124
  }];
23110
23125
  var comparisonItems97 = [{
@@ -23113,23 +23128,23 @@ var comparisonItems97 = [{
23113
23128
  isIncluded: true
23114
23129
  }, {
23115
23130
  title: 'UNLIMITED Heartfelt Prompting Cards!',
23116
- description: 'Send unlimited 5x7 greeting cards, stamps included. Mailed for you. Immediately!',
23131
+ description: 'Send an unlimited amount of 5x7 greeting cards, also with stamps included. We stuff, stamp, and mail them for you immediately!',
23117
23132
  isIncluded: true
23118
23133
  }, {
23119
23134
  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.',
23135
+ description: 'Store your contact information, birthdays, special occasions, reminders, include notes, and get a history of every card sent.',
23121
23136
  isIncluded: true
23122
23137
  }, {
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!',
23138
+ title: '30 System Cards!',
23139
+ description: 'Schedule, send to one or multiple people, even take advantage of our drip campaign feature!',
23125
23140
  isIncluded: true
23126
23141
  }, {
23127
- title: '30% off gifts',
23128
- description: '',
23142
+ title: '30% Discount on Gifts',
23143
+ description: 'Each gift that you add to greeting cards gets you even more savings!',
23129
23144
  isIncluded: true
23130
23145
  }, {
23131
- title: '30% off shipping',
23132
- description: '',
23146
+ title: '30% Savings on Shipping',
23147
+ description: 'Get even more savings when you ship your greeting card with a gift. We have you covered!',
23133
23148
  isIncluded: true
23134
23149
  }];
23135
23150
 
@@ -23144,7 +23159,6 @@ var SubscriptionUpsaleDialog = function (_a) {
23144
23159
  setIsDialogOpen = _a.setIsDialogOpen,
23145
23160
  _b = _a.optionFormLocation,
23146
23161
  optionFormLocation = _b === void 0 ? 'right' : _b,
23147
- submitAction = _a.submitAction,
23148
23162
  children = _a.children,
23149
23163
  selectedOption = _a.selectedOption,
23150
23164
  removeSelectedOption = _a.removeSelectedOption,
@@ -23164,7 +23178,6 @@ var SubscriptionUpsaleDialog = function (_a) {
23164
23178
  handleSelectedOption: function (optionId) {
23165
23179
  return handleSelectedOption(optionId);
23166
23180
  },
23167
- submitAction: submitAction,
23168
23181
  removeSelectedOption: removeSelectedOption,
23169
23182
  upsaleContentTitle: upsaleContentTitle,
23170
23183
  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 & {
@@ -1,5 +1,4 @@
1
1
  import React, { FC } from 'react';
2
- import { ButtonType } from "../../exports/molecules";
3
2
  import { UpsaleOptionsType } from './upsaleOptions';
4
3
  import { Responsive, LiteralUnion, HOCSpacingKeys } from "../../helpers/hoc-types/entityValueTypes";
5
4
  export declare type UpsaleDialogProps = {
@@ -7,12 +6,6 @@ export declare type UpsaleDialogProps = {
7
6
  description: string;
8
7
  checkoutTitle: string;
9
8
  checkoutDescription: string;
10
- submitAction: {
11
- title: string;
12
- isDisabled: boolean;
13
- onClick: () => void;
14
- type?: ButtonType;
15
- };
16
9
  upsaleContent: React.ReactNode;
17
10
  optionFormLocation?: 'right' | 'left';
18
11
  isOpen: boolean;
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.43",
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",