@sendoutcards/quantum-design-ui 1.7.46 → 1.7.49
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
|
@@ -13789,6 +13789,10 @@ var Input = function (_a) {
|
|
|
13789
13789
|
ref: inputWrapperRef,
|
|
13790
13790
|
onFocus: function () {
|
|
13791
13791
|
setIsFocused(true);
|
|
13792
|
+
},
|
|
13793
|
+
style: {
|
|
13794
|
+
// opacity: 0.3,
|
|
13795
|
+
backgroundColor: message ? "" + hocs.colors.swatches[message.type]._1000 : ''
|
|
13792
13796
|
}
|
|
13793
13797
|
}, icon && jsx(Span, {
|
|
13794
13798
|
css: styles$w.iconContainer,
|
|
@@ -13898,6 +13902,13 @@ var Input = function (_a) {
|
|
|
13898
13902
|
border: inputs.text.borderWidth + " solid " + hocs.colors.swatches[focusColor].base,
|
|
13899
13903
|
transition: 'border 0.3s'
|
|
13900
13904
|
}
|
|
13905
|
+
}), message && jsx(Div, {
|
|
13906
|
+
id: "outerglow",
|
|
13907
|
+
css: styles$w.outerglow(inputs, width, height, isFullWidth),
|
|
13908
|
+
style: {
|
|
13909
|
+
border: inputs.text.borderWidth + " solid " + hocs.colors.swatches[message.type].base,
|
|
13910
|
+
transition: 'border 0.3s'
|
|
13911
|
+
}
|
|
13901
13912
|
})), message && jsx(HStack, {
|
|
13902
13913
|
gap: "x_5",
|
|
13903
13914
|
justify: "flex-start"
|
|
@@ -14320,7 +14331,10 @@ var Select = function (props) {
|
|
|
14320
14331
|
borderRadius: "default",
|
|
14321
14332
|
backgroundColor: isHover || isOpen ? 'foreground' : 'background',
|
|
14322
14333
|
boxShadow: isHover || isOpen ? inputs.select.boxShadow : 'none',
|
|
14323
|
-
tabIndex: 0
|
|
14334
|
+
tabIndex: 0,
|
|
14335
|
+
style: {
|
|
14336
|
+
border: message ? inputs.text.borderWidth + " solid " + hocs.colors.swatches[message.type].base : ''
|
|
14337
|
+
}
|
|
14324
14338
|
}, jsx("div", {
|
|
14325
14339
|
css: styles$u.activeOption(alignment)
|
|
14326
14340
|
}, selectedOptionIndex !== undefined ? jsx("div", null, props.type === 'text' ? jsx(OptionContent, {
|
|
@@ -17197,7 +17211,9 @@ var Banner = function (_a) {
|
|
|
17197
17211
|
},
|
|
17198
17212
|
borderRadius: "default",
|
|
17199
17213
|
display: "flex",
|
|
17200
|
-
|
|
17214
|
+
justifyContent: "space-between"
|
|
17215
|
+
}, jsx(Div, {
|
|
17216
|
+
display: 'flex'
|
|
17201
17217
|
}, icon && jsx(Span, {
|
|
17202
17218
|
inset: {
|
|
17203
17219
|
right: 'x1'
|
|
@@ -17216,7 +17232,10 @@ var Banner = function (_a) {
|
|
|
17216
17232
|
xSmall: 'footnote',
|
|
17217
17233
|
small: 'caption'
|
|
17218
17234
|
}
|
|
17219
|
-
}),
|
|
17235
|
+
})), jsx(Div, {
|
|
17236
|
+
display: "flex",
|
|
17237
|
+
alignItems: "center"
|
|
17238
|
+
}, children));
|
|
17220
17239
|
};
|
|
17221
17240
|
|
|
17222
17241
|
var _emotionSourceMap2$8 = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJYSIsImZpbGUiOiJzdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBfX21ha2VUZW1wbGF0ZU9iamVjdCB9IGZyb20gXCJ0c2xpYlwiO1xyXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcclxuZXhwb3J0IGRlZmF1bHQge1xyXG4gICAgY2lyY2xlTWVudUNvbnRhaW5lcjogY3NzKHRlbXBsYXRlT2JqZWN0XzEgfHwgKHRlbXBsYXRlT2JqZWN0XzEgPSBfX21ha2VUZW1wbGF0ZU9iamVjdChbXCJcXG4gICAgY3Vyc29yOiBwb2ludGVyO1xcbiAgICA+IGRpdiA+IHN2ZyB7XFxuICAgICAgdHJhbnNmb3JtOiBzY2FsZSgxLjUpO1xcbiAgICB9XFxuICBcIl0sIFtcIlxcbiAgICBjdXJzb3I6IHBvaW50ZXI7XFxuICAgID4gZGl2ID4gc3ZnIHtcXG4gICAgICB0cmFuc2Zvcm06IHNjYWxlKDEuNSk7XFxuICAgIH1cXG4gIFwiXSkpKSxcclxuICAgIHRyaWdnZXI6IGNzcyh0ZW1wbGF0ZU9iamVjdF8yIHx8ICh0ZW1wbGF0ZU9iamVjdF8yID0gX19tYWtlVGVtcGxhdGVPYmplY3QoW1wiXFxuICAgIGRpc3BsYXk6IG5vbmU7XFxuICBcIl0sIFtcIlxcbiAgICBkaXNwbGF5OiBub25lO1xcbiAgXCJdKSkpLFxyXG59O1xyXG52YXIgdGVtcGxhdGVPYmplY3RfMSwgdGVtcGxhdGVPYmplY3RfMjtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9c3R5bGVzLmpzLm1hcCJdfQ== */";
|
|
@@ -19885,7 +19904,9 @@ var PricingTile = function (_a) {
|
|
|
19885
19904
|
children = _a.children,
|
|
19886
19905
|
_h = _a.hasShadow,
|
|
19887
19906
|
hasShadow = _h === void 0 ? true : _h,
|
|
19888
|
-
disclaimer = _a.disclaimer
|
|
19907
|
+
disclaimer = _a.disclaimer,
|
|
19908
|
+
_j = _a.isSelected,
|
|
19909
|
+
isSelected = _j === void 0 ? false : _j;
|
|
19889
19910
|
var hocs = useEntities().hocs;
|
|
19890
19911
|
|
|
19891
19912
|
var getIconColorFromAccentColor = function (accentColor) {
|
|
@@ -19933,9 +19954,9 @@ var PricingTile = function (_a) {
|
|
|
19933
19954
|
|
|
19934
19955
|
var featureTextColor = isFeatured ? featuredItemStyles.textColor === 'white' ? 'inverseBody' : 'primaryBody' : textColor === 'white' ? 'inverseBody' : 'primaryBody';
|
|
19935
19956
|
|
|
19936
|
-
var
|
|
19937
|
-
isDisclaimerOpen =
|
|
19938
|
-
setDisclaimerOpen =
|
|
19957
|
+
var _k = useState(false),
|
|
19958
|
+
isDisclaimerOpen = _k[0],
|
|
19959
|
+
setDisclaimerOpen = _k[1];
|
|
19939
19960
|
|
|
19940
19961
|
return jsx(Flex, {
|
|
19941
19962
|
inset: "x5",
|
|
@@ -19943,10 +19964,16 @@ var PricingTile = function (_a) {
|
|
|
19943
19964
|
width: "100%",
|
|
19944
19965
|
position: "relative",
|
|
19945
19966
|
height: "fit-content",
|
|
19967
|
+
borderStyle: 'solid',
|
|
19968
|
+
borderColor: isSelected ? {
|
|
19969
|
+
swatch: 'success',
|
|
19970
|
+
shade: 'base'
|
|
19971
|
+
} : 'transparent',
|
|
19972
|
+
borderWidth: 'default',
|
|
19946
19973
|
borderRadius: "default",
|
|
19947
19974
|
boxShadow: hasShadow ? 'mediumLight' : '',
|
|
19948
19975
|
flexDirection: "column",
|
|
19949
|
-
justifyContent: "
|
|
19976
|
+
justifyContent: "flex-start",
|
|
19950
19977
|
alignItems: "center",
|
|
19951
19978
|
minWidth: {
|
|
19952
19979
|
xSmall: '100%',
|
|
@@ -19969,44 +19996,39 @@ var PricingTile = function (_a) {
|
|
|
19969
19996
|
}, jsx(Flex, {
|
|
19970
19997
|
justifyContent: billingInterval ? 'space-between' : 'flex-start',
|
|
19971
19998
|
width: "100%",
|
|
19972
|
-
alignContent: "
|
|
19973
|
-
}, jsx(
|
|
19974
|
-
|
|
19975
|
-
|
|
19976
|
-
|
|
19977
|
-
|
|
19978
|
-
color:
|
|
19979
|
-
}
|
|
19980
|
-
|
|
19981
|
-
}, jsx(Spacer, {
|
|
19982
|
-
orientation: "horizontal",
|
|
19983
|
-
space: "x2"
|
|
19984
|
-
}), jsx(Flex, {
|
|
19985
|
-
borderRadius: "circle",
|
|
19986
|
-
alignItems: "center",
|
|
19987
|
-
height: "fit-content",
|
|
19988
|
-
backgroundColor: backgroundColor !== 'inverseBody' && backgroundColor !== 'inverseHeading' || isFeatured ? '#FFFFFF44' : undefined,
|
|
19989
|
-
boxShadow: !isFeatured ? 'light' : undefined,
|
|
19990
|
-
inset: {
|
|
19991
|
-
vertical: 'x_5',
|
|
19992
|
-
horizontal: 'x2'
|
|
19993
|
-
}
|
|
19999
|
+
alignContent: "flex-start"
|
|
20000
|
+
}, isSelected && jsx(Div, {
|
|
20001
|
+
right: "x1",
|
|
20002
|
+
position: "absolute",
|
|
20003
|
+
top: "x1"
|
|
20004
|
+
}, jsx(AnimatedCheckMark, {
|
|
20005
|
+
color: "accent"
|
|
20006
|
+
})), jsx(VStack, {
|
|
20007
|
+
gap: "x2"
|
|
19994
20008
|
}, jsx(Text, {
|
|
19995
20009
|
type: {
|
|
19996
|
-
xSmall: '
|
|
19997
|
-
medium: '
|
|
20010
|
+
xSmall: 'subtitle',
|
|
20011
|
+
medium: 'title'
|
|
19998
20012
|
},
|
|
20013
|
+
color: isFeatured ? featuredItemStyles.accentColor : accentColor,
|
|
20014
|
+
weight: "bold",
|
|
20015
|
+
content: title
|
|
20016
|
+
}), jsx(Text, {
|
|
20017
|
+
lineHeight: 1.5,
|
|
20018
|
+
type: "caption",
|
|
19999
20019
|
color: featureTextColor
|
|
20000
|
-
},
|
|
20020
|
+
}, description !== null && description !== void 0 ? description : children), jsx(Flex, {
|
|
20001
20021
|
width: "100%",
|
|
20002
20022
|
alignItems: "center"
|
|
20003
20023
|
}, jsx(Text, {
|
|
20004
20024
|
type: {
|
|
20005
|
-
xSmall: '
|
|
20006
|
-
medium: '
|
|
20025
|
+
xSmall: 'subtitle',
|
|
20026
|
+
medium: 'title'
|
|
20007
20027
|
},
|
|
20008
|
-
color: featureTextColor
|
|
20009
|
-
|
|
20028
|
+
color: featureTextColor,
|
|
20029
|
+
weight: "bold",
|
|
20030
|
+
content: price
|
|
20031
|
+
}), priceSubtext && jsx(React.Fragment, null, jsx(Spacer, {
|
|
20010
20032
|
space: "x2",
|
|
20011
20033
|
orientation: "horizontal"
|
|
20012
20034
|
}), jsx(Flex, {
|
|
@@ -20017,13 +20039,28 @@ var PricingTile = function (_a) {
|
|
|
20017
20039
|
medium: 'caption'
|
|
20018
20040
|
},
|
|
20019
20041
|
color: featureTextColor
|
|
20020
|
-
}, priceSubtext)))),
|
|
20042
|
+
}, priceSubtext))))), billingInterval && jsx(Flex, {
|
|
20043
|
+
height: "100%"
|
|
20044
|
+
}, jsx(Spacer, {
|
|
20045
|
+
orientation: "horizontal",
|
|
20046
|
+
space: "x2"
|
|
20047
|
+
}), jsx(Flex, {
|
|
20048
|
+
borderRadius: "circle",
|
|
20049
|
+
alignItems: "center",
|
|
20050
|
+
height: "fit-content",
|
|
20051
|
+
backgroundColor: backgroundColor !== 'inverseBody' && backgroundColor !== 'inverseHeading' || isFeatured ? '#FFFFFF44' : undefined,
|
|
20052
|
+
boxShadow: !isFeatured ? 'light' : undefined,
|
|
20053
|
+
inset: {
|
|
20054
|
+
vertical: 'x_5',
|
|
20055
|
+
horizontal: 'x2'
|
|
20056
|
+
}
|
|
20057
|
+
}, jsx(Text, {
|
|
20021
20058
|
type: {
|
|
20022
20059
|
xSmall: 'caption',
|
|
20023
20060
|
medium: 'body'
|
|
20024
20061
|
},
|
|
20025
20062
|
color: featureTextColor
|
|
20026
|
-
},
|
|
20063
|
+
}, billingInterval))))), jsx(Flex, {
|
|
20027
20064
|
width: "100%"
|
|
20028
20065
|
}, jsx(VStack, {
|
|
20029
20066
|
gap: 'x2'
|
|
@@ -20093,6 +20130,7 @@ var PricingTile = function (_a) {
|
|
|
20093
20130
|
title: primaryAction.text,
|
|
20094
20131
|
size: "medium",
|
|
20095
20132
|
onClick: primaryAction.onClick,
|
|
20133
|
+
disabled: primaryAction.isDisabled,
|
|
20096
20134
|
type: getButtonTypeFromAccentColor(isFeatured ? featuredItemStyles.accentColor : accentColor),
|
|
20097
20135
|
textColorOverride: primaryAction.shouldTextMatchBackground && isFeatured ? featuredItemStyles.backgroundColor : primaryAction.shouldTextMatchBackground ? backgroundColor : undefined
|
|
20098
20136
|
})), secondaryAction && jsx(Flex, {
|
|
@@ -20100,7 +20138,7 @@ var PricingTile = function (_a) {
|
|
|
20100
20138
|
alignItems: 'center'
|
|
20101
20139
|
}, jsx(Anchor, {
|
|
20102
20140
|
title: secondaryAction.text,
|
|
20103
|
-
onClick: secondaryAction.onClick,
|
|
20141
|
+
onClick: secondaryAction.isDisabled ? undefined : secondaryAction.onClick,
|
|
20104
20142
|
color: secondaryAction.shouldTextMatchBackground && isFeatured ? featuredItemStyles.backgroundColor : secondaryAction.shouldTextMatchBackground ? backgroundColor : undefined,
|
|
20105
20143
|
isDecorated: true,
|
|
20106
20144
|
target: '_blank'
|
|
@@ -20137,10 +20175,12 @@ var PricingTile = function (_a) {
|
|
|
20137
20175
|
}
|
|
20138
20176
|
}, jsx(Text, {
|
|
20139
20177
|
type: 'title',
|
|
20140
|
-
weight: 'bold'
|
|
20141
|
-
|
|
20142
|
-
|
|
20143
|
-
|
|
20178
|
+
weight: 'bold',
|
|
20179
|
+
content: disclaimer.termsTitle
|
|
20180
|
+
}), jsx(Text, {
|
|
20181
|
+
type: 'body',
|
|
20182
|
+
content: disclaimer.termsDescription
|
|
20183
|
+
}), jsx(Div, {
|
|
20144
20184
|
outset: {
|
|
20145
20185
|
top: 'auto'
|
|
20146
20186
|
},
|
|
@@ -22699,9 +22739,9 @@ var AffiliateUpsalePromotionWidget = function (_a) {
|
|
|
22699
22739
|
};
|
|
22700
22740
|
|
|
22701
22741
|
var getContent = function (type) {
|
|
22702
|
-
var title = type === 'customer'
|
|
22703
|
-
var description = type === 'customer'
|
|
22704
|
-
var buttonTitle = type === 'customer'
|
|
22742
|
+
var title = type === 'customer' || type === 'freeAffiliate' ? 'Love our products & services?' : 'Build your Greener Still Business';
|
|
22743
|
+
var description = type === 'customer' || type === 'freeAffiliate' ? 'Isn’t it fun?! Sending out to give when you feel a prompting, it’s pretty great! Finding yourself sharing with others? Earn an income simply for sharing products you already love! Become an Affiliate Pro for $14/month and start sharing with our GS Pro app easily and effectively.' : '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!';
|
|
22744
|
+
var buttonTitle = type === 'customer' || type === 'freeAffiliate' ? 'Unlock Your Opportunity' : 'Comp Plan Training';
|
|
22705
22745
|
var url = type === 'proAffiliate' ? 'https://www.facebook.com/groups/sendoutcardscorporate/permalink/5098162643579731' : 'https://app.sendoutcards.com/?client=greenerstill&affiliatejoin';
|
|
22706
22746
|
return {
|
|
22707
22747
|
title: title,
|
|
@@ -5,6 +5,7 @@ declare type ActionType = {
|
|
|
5
5
|
text: string;
|
|
6
6
|
onClick: () => void;
|
|
7
7
|
shouldTextMatchBackground?: boolean;
|
|
8
|
+
isDisabled?: boolean;
|
|
8
9
|
};
|
|
9
10
|
declare type FeaturedItemStyleType = {
|
|
10
11
|
backgroundColor: PricingTileColorType;
|
|
@@ -38,6 +39,7 @@ export declare type PricingTileProps = {
|
|
|
38
39
|
billingInterval?: string;
|
|
39
40
|
hasShadow?: boolean;
|
|
40
41
|
disclaimer?: Disclaimer;
|
|
42
|
+
isSelected?: boolean;
|
|
41
43
|
};
|
|
42
44
|
export declare const PricingTile: FC<PricingTileProps>;
|
|
43
45
|
export {};
|