@bbl-digital/snorre 4.1.43 → 4.1.44

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.
@@ -38,18 +38,18 @@ export const MemberBenefitsCard = ({
38
38
  level: 3,
39
39
  size: "18px",
40
40
  children: benefit.name
41
- }), benefit?.benefit && /*#__PURE__*/_jsx(Text, {
42
- children: benefit.benefit
41
+ }), benefit?.teaser && /*#__PURE__*/_jsx(Text, {
42
+ children: benefit.teaser
43
43
  })]
44
44
  }), (hasDiscountText || hasBonusRate) && /*#__PURE__*/_jsxs(DiscountAndBonus, {
45
- children: [benefit?.bonusText && /*#__PURE__*/_jsxs(Row, {
45
+ children: [benefit?.bonusRate && /*#__PURE__*/_jsxs(Row, {
46
46
  children: [/*#__PURE__*/_jsx(IconMedal, {
47
47
  backgrounded: true
48
- }), /*#__PURE__*/_jsx(Text, {
48
+ }), /*#__PURE__*/_jsxs(Text, {
49
49
  semibold: true,
50
- children: benefit.bonusText
50
+ children: [benefit.bonusRate, "% bonus"]
51
51
  })]
52
- }), benefit?.discountText && /*#__PURE__*/_jsxs(Row, {
52
+ }), benefit?.discountText?.trim() && /*#__PURE__*/_jsxs(Row, {
53
53
  children: [/*#__PURE__*/_jsx(IconPercent, {
54
54
  backgrounded: true
55
55
  }), /*#__PURE__*/_jsx(Text, {
@@ -38,18 +38,18 @@ export const MemberBenefitsCard = ({
38
38
  level: 3,
39
39
  size: "18px",
40
40
  children: benefit.name
41
- }), benefit?.benefit && /*#__PURE__*/_jsx(Text, {
42
- children: benefit.benefit
41
+ }), benefit?.teaser && /*#__PURE__*/_jsx(Text, {
42
+ children: benefit.teaser
43
43
  })]
44
44
  }), (hasDiscountText || hasBonusRate) && /*#__PURE__*/_jsxs(DiscountAndBonus, {
45
- children: [benefit?.bonusText && /*#__PURE__*/_jsxs(Row, {
45
+ children: [benefit?.bonusRate && /*#__PURE__*/_jsxs(Row, {
46
46
  children: [/*#__PURE__*/_jsx(IconMedal, {
47
47
  backgrounded: true
48
- }), /*#__PURE__*/_jsx(Text, {
48
+ }), /*#__PURE__*/_jsxs(Text, {
49
49
  semibold: true,
50
- children: benefit.bonusText
50
+ children: [benefit.bonusRate, "% bonus"]
51
51
  })]
52
- }), benefit?.discountText && /*#__PURE__*/_jsxs(Row, {
52
+ }), benefit?.discountText?.trim() && /*#__PURE__*/_jsxs(Row, {
53
53
  children: [/*#__PURE__*/_jsx(IconPercent, {
54
54
  backgrounded: true
55
55
  }), /*#__PURE__*/_jsx(Text, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbl-digital/snorre",
3
- "version": "4.1.43",
3
+ "version": "4.1.44",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",