@sendoutcards/quantum-design-ui 1.7.48 → 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, {
@@ -19890,7 +19904,9 @@ var PricingTile = function (_a) {
19890
19904
  children = _a.children,
19891
19905
  _h = _a.hasShadow,
19892
19906
  hasShadow = _h === void 0 ? true : _h,
19893
- disclaimer = _a.disclaimer;
19907
+ disclaimer = _a.disclaimer,
19908
+ _j = _a.isSelected,
19909
+ isSelected = _j === void 0 ? false : _j;
19894
19910
  var hocs = useEntities().hocs;
19895
19911
 
19896
19912
  var getIconColorFromAccentColor = function (accentColor) {
@@ -19938,9 +19954,9 @@ var PricingTile = function (_a) {
19938
19954
 
19939
19955
  var featureTextColor = isFeatured ? featuredItemStyles.textColor === 'white' ? 'inverseBody' : 'primaryBody' : textColor === 'white' ? 'inverseBody' : 'primaryBody';
19940
19956
 
19941
- var _j = useState(false),
19942
- isDisclaimerOpen = _j[0],
19943
- setDisclaimerOpen = _j[1];
19957
+ var _k = useState(false),
19958
+ isDisclaimerOpen = _k[0],
19959
+ setDisclaimerOpen = _k[1];
19944
19960
 
19945
19961
  return jsx(Flex, {
19946
19962
  inset: "x5",
@@ -19948,10 +19964,16 @@ var PricingTile = function (_a) {
19948
19964
  width: "100%",
19949
19965
  position: "relative",
19950
19966
  height: "fit-content",
19967
+ borderStyle: 'solid',
19968
+ borderColor: isSelected ? {
19969
+ swatch: 'success',
19970
+ shade: 'base'
19971
+ } : 'transparent',
19972
+ borderWidth: 'default',
19951
19973
  borderRadius: "default",
19952
19974
  boxShadow: hasShadow ? 'mediumLight' : '',
19953
19975
  flexDirection: "column",
19954
- justifyContent: "center",
19976
+ justifyContent: "flex-start",
19955
19977
  alignItems: "center",
19956
19978
  minWidth: {
19957
19979
  xSmall: '100%',
@@ -19974,44 +19996,39 @@ var PricingTile = function (_a) {
19974
19996
  }, jsx(Flex, {
19975
19997
  justifyContent: billingInterval ? 'space-between' : 'flex-start',
19976
19998
  width: "100%",
19977
- alignContent: "center"
19978
- }, jsx(Text, {
19979
- type: {
19980
- xSmall: 'body',
19981
- medium: 'largeBody'
19982
- },
19983
- color: isFeatured ? featuredItemStyles.accentColor : accentColor
19984
- }, title), billingInterval && jsx(Flex, {
19985
- height: "100%"
19986
- }, jsx(Spacer, {
19987
- orientation: "horizontal",
19988
- space: "x2"
19989
- }), jsx(Flex, {
19990
- borderRadius: "circle",
19991
- alignItems: "center",
19992
- height: "fit-content",
19993
- backgroundColor: backgroundColor !== 'inverseBody' && backgroundColor !== 'inverseHeading' || isFeatured ? '#FFFFFF44' : undefined,
19994
- boxShadow: !isFeatured ? 'light' : undefined,
19995
- inset: {
19996
- vertical: 'x_5',
19997
- horizontal: 'x2'
19998
- }
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"
19999
20008
  }, jsx(Text, {
20000
20009
  type: {
20001
- xSmall: 'caption',
20002
- medium: 'body'
20010
+ xSmall: 'subtitle',
20011
+ medium: 'title'
20003
20012
  },
20013
+ color: isFeatured ? featuredItemStyles.accentColor : accentColor,
20014
+ weight: "bold",
20015
+ content: title
20016
+ }), jsx(Text, {
20017
+ lineHeight: 1.5,
20018
+ type: "caption",
20004
20019
  color: featureTextColor
20005
- }, billingInterval)))), jsx(Flex, {
20020
+ }, description !== null && description !== void 0 ? description : children), jsx(Flex, {
20006
20021
  width: "100%",
20007
20022
  alignItems: "center"
20008
20023
  }, jsx(Text, {
20009
20024
  type: {
20010
- xSmall: 'title',
20011
- medium: 'heroTitle'
20025
+ xSmall: 'subtitle',
20026
+ medium: 'title'
20012
20027
  },
20013
- color: featureTextColor
20014
- }, price), priceSubtext && jsx(React.Fragment, null, jsx(Spacer, {
20028
+ color: featureTextColor,
20029
+ weight: "bold",
20030
+ content: price
20031
+ }), priceSubtext && jsx(React.Fragment, null, jsx(Spacer, {
20015
20032
  space: "x2",
20016
20033
  orientation: "horizontal"
20017
20034
  }), jsx(Flex, {
@@ -20022,13 +20039,28 @@ var PricingTile = function (_a) {
20022
20039
  medium: 'caption'
20023
20040
  },
20024
20041
  color: featureTextColor
20025
- }, priceSubtext)))), jsx(Flex, null, jsx(Text, {
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, {
20026
20058
  type: {
20027
20059
  xSmall: 'caption',
20028
20060
  medium: 'body'
20029
20061
  },
20030
20062
  color: featureTextColor
20031
- }, description !== null && description !== void 0 ? description : children))), jsx(Flex, {
20063
+ }, billingInterval))))), jsx(Flex, {
20032
20064
  width: "100%"
20033
20065
  }, jsx(VStack, {
20034
20066
  gap: 'x2'
@@ -20098,6 +20130,7 @@ var PricingTile = function (_a) {
20098
20130
  title: primaryAction.text,
20099
20131
  size: "medium",
20100
20132
  onClick: primaryAction.onClick,
20133
+ disabled: primaryAction.isDisabled,
20101
20134
  type: getButtonTypeFromAccentColor(isFeatured ? featuredItemStyles.accentColor : accentColor),
20102
20135
  textColorOverride: primaryAction.shouldTextMatchBackground && isFeatured ? featuredItemStyles.backgroundColor : primaryAction.shouldTextMatchBackground ? backgroundColor : undefined
20103
20136
  })), secondaryAction && jsx(Flex, {
@@ -20105,7 +20138,7 @@ var PricingTile = function (_a) {
20105
20138
  alignItems: 'center'
20106
20139
  }, jsx(Anchor, {
20107
20140
  title: secondaryAction.text,
20108
- onClick: secondaryAction.onClick,
20141
+ onClick: secondaryAction.isDisabled ? undefined : secondaryAction.onClick,
20109
20142
  color: secondaryAction.shouldTextMatchBackground && isFeatured ? featuredItemStyles.backgroundColor : secondaryAction.shouldTextMatchBackground ? backgroundColor : undefined,
20110
20143
  isDecorated: true,
20111
20144
  target: '_blank'
@@ -20142,10 +20175,12 @@ var PricingTile = function (_a) {
20142
20175
  }
20143
20176
  }, jsx(Text, {
20144
20177
  type: 'title',
20145
- weight: 'bold'
20146
- }, disclaimer.termsTitle), jsx(Text, {
20147
- type: 'body'
20148
- }, disclaimer.termsDescription), jsx(Div, {
20178
+ weight: 'bold',
20179
+ content: disclaimer.termsTitle
20180
+ }), jsx(Text, {
20181
+ type: 'body',
20182
+ content: disclaimer.termsDescription
20183
+ }), jsx(Div, {
20149
20184
  outset: {
20150
20185
  top: 'auto'
20151
20186
  },
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoutcards/quantum-design-ui",
3
- "version": "1.7.48",
3
+ "version": "1.7.49",
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",