@saasquatch/mint-components 1.5.0-23 → 1.5.0-24

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.
@@ -16305,11 +16305,7 @@ const RewardsTableColumn = class {
16305
16305
  return this.columnTitle;
16306
16306
  }
16307
16307
  render() {
16308
- reRender.useRequestRerender([
16309
- this.columnTitle,
16310
- this.availableText,
16311
- this.redeemedText,
16312
- ]);
16308
+ reRender.useRequestRerender([this.columnTitle]);
16313
16309
  return index.h(index.Host, { style: { display: "none" } });
16314
16310
  }
16315
16311
  };
@@ -16362,7 +16358,7 @@ const RewardTableRewardsCell = class {
16362
16358
  jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
16363
16359
  const sheet = jssPresetDefault_esm.jss.createStyleSheet(style);
16364
16360
  const styleString = sheet.toString();
16365
- function RewardValue({ reward }) {
16361
+ const RewardValue = ({ reward }) => {
16366
16362
  var _a;
16367
16363
  const pimpedPrettyValue = reward.unit === "CENTS"
16368
16364
  ? reward.prettyValue.replace(/USD/gi, "$")
@@ -16417,7 +16413,7 @@ const RewardTableRewardsCell = class {
16417
16413
  return (index.h("div", null, index.h("style", { type: "text/css" }, styleString), index.h("div", { class: sheet.classes.Container }, index.h("span", { style: { color: "#232323" } }, pimpedPrettyValue), " ", index.h("br", null), " ", index.h("div", { class: sheet.classes.Progress }), progressBarSubtext)));
16418
16414
  }
16419
16415
  return index.h("span", { style: { color: "#232323" } }, pimpedPrettyValue);
16420
- }
16416
+ };
16421
16417
  return (index.h("div", { style: { display: "contents" } }, index.h("style", { type: "text/css" }, styleString), index.h(sqmTextSpanView.TextSpanView, { type: "p" }, index.h("span", { class: sheet.classes.BoldText }, index.h(RewardValue, { reward: this.reward })))));
16422
16418
  }
16423
16419
  };
@@ -16427,16 +16423,16 @@ const RewardTableSourceCell = class {
16427
16423
  index.registerInstance(this, hostRef);
16428
16424
  }
16429
16425
  render() {
16430
- function RewardSource({ reward }) {
16426
+ const RewardSource = ({ reward }) => {
16431
16427
  return (index.h("span", null, global.intl.formatMessage({
16432
16428
  id: "rewardSourceText",
16433
16429
  defaultMessage: this.rewardSourceText,
16434
16430
  }, {
16435
16431
  rewardSource: reward.rewardSource,
16436
16432
  })));
16437
- }
16433
+ };
16438
16434
  const SOURCE_COLUMN_LENGTH = 21;
16439
- function RewardExchangeBadge({ reward }) {
16435
+ const RewardExchangeBadge = ({ reward }) => {
16440
16436
  var _a;
16441
16437
  const rewardExchange = (index.h("div", null, this.rewardExchangeText, index.h("br", null), (_a = reward.exchangedRewardRedemptionTransaction) === null || _a === void 0 ? void 0 :
16442
16438
  _a.prettyRedeemedCredit, " → ", reward.prettyValue));
@@ -16448,9 +16444,9 @@ const RewardTableSourceCell = class {
16448
16444
  verticalAlign: "top",
16449
16445
  maxWidth: "155px",
16450
16446
  } }, rewardExchange));
16451
- }
16447
+ };
16452
16448
  // TODO: user type
16453
- function getFullName(user) {
16449
+ const getFullName = (user) => {
16454
16450
  if (!user)
16455
16451
  return this.deletedUserText;
16456
16452
  if (!user.firstName && !user.lastName)
@@ -16460,7 +16456,7 @@ const RewardTableSourceCell = class {
16460
16456
  if (!user.lastName)
16461
16457
  return `${user.firstName}`;
16462
16458
  return `${user.firstName} ${user.lastName}`;
16463
- }
16459
+ };
16464
16460
  const source = () => this.reward.rewardSource === "FRIEND_SIGNUP" ||
16465
16461
  this.reward.rewardSource === "REFERRED" ? (index.h("div", null, global.intl.formatMessage({
16466
16462
  id: "referralText",
@@ -16515,9 +16511,6 @@ const RewardTableUserColumn = class {
16515
16511
  this.deletedUser,
16516
16512
  this.anonymousUser,
16517
16513
  this.columnTitle,
16518
- this.rewardExchangeText,
16519
- this.referralText,
16520
- this.referralText,
16521
16514
  ]);
16522
16515
  return index.h(index.Host, { style: { display: "none" } });
16523
16516
  }
@@ -16602,7 +16595,7 @@ const RewardTableStatusColumn = class {
16602
16595
  return this.columnTitle;
16603
16596
  }
16604
16597
  render() {
16605
- reRender.useRequestRerender([this.columnTitle, this.expiryText]);
16598
+ reRender.useRequestRerender([this.columnTitle]);
16606
16599
  return index.h(index.Host, { style: { display: "none" } });
16607
16600
  }
16608
16601
  };
@@ -48,7 +48,7 @@ export class RewardTableRewardsCell {
48
48
  jss.setup(preset());
49
49
  const sheet = jss.createStyleSheet(style);
50
50
  const styleString = sheet.toString();
51
- function RewardValue({ reward }) {
51
+ const RewardValue = ({ reward }) => {
52
52
  var _a;
53
53
  const pimpedPrettyValue = reward.unit === "CENTS"
54
54
  ? reward.prettyValue.replace(/USD/gi, "$")
@@ -111,7 +111,7 @@ export class RewardTableRewardsCell {
111
111
  progressBarSubtext)));
112
112
  }
113
113
  return h("span", { style: { color: "#232323" } }, pimpedPrettyValue);
114
- }
114
+ };
115
115
  return (h("div", { style: { display: "contents" } },
116
116
  h("style", { type: "text/css" }, styleString),
117
117
  h(TextSpanView, { type: "p" },
@@ -3,16 +3,16 @@ import { intl } from "../../../global/global";
3
3
  import { TextSpanView } from "../../sqm-text-span/sqm-text-span-view";
4
4
  export class RewardTableSourceCell {
5
5
  render() {
6
- function RewardSource({ reward }) {
6
+ const RewardSource = ({ reward }) => {
7
7
  return (h("span", null, intl.formatMessage({
8
8
  id: "rewardSourceText",
9
9
  defaultMessage: this.rewardSourceText,
10
10
  }, {
11
11
  rewardSource: reward.rewardSource,
12
12
  })));
13
- }
13
+ };
14
14
  const SOURCE_COLUMN_LENGTH = 21;
15
- function RewardExchangeBadge({ reward }) {
15
+ const RewardExchangeBadge = ({ reward }) => {
16
16
  var _a;
17
17
  const rewardExchange = (h("div", null,
18
18
  this.rewardExchangeText,
@@ -28,9 +28,9 @@ export class RewardTableSourceCell {
28
28
  verticalAlign: "top",
29
29
  maxWidth: "155px",
30
30
  } }, rewardExchange));
31
- }
31
+ };
32
32
  // TODO: user type
33
- function getFullName(user) {
33
+ const getFullName = (user) => {
34
34
  if (!user)
35
35
  return this.deletedUserText;
36
36
  if (!user.firstName && !user.lastName)
@@ -40,7 +40,7 @@ export class RewardTableSourceCell {
40
40
  if (!user.lastName)
41
41
  return `${user.firstName}`;
42
42
  return `${user.firstName} ${user.lastName}`;
43
- }
43
+ };
44
44
  const source = () => this.reward.rewardSource === "FRIEND_SIGNUP" ||
45
45
  this.reward.rewardSource === "REFERRED" ? (h("div", null,
46
46
  intl.formatMessage({
@@ -28,11 +28,7 @@ export class RewardsTableColumn {
28
28
  return this.columnTitle;
29
29
  }
30
30
  render() {
31
- useRequestRerender([
32
- this.columnTitle,
33
- this.availableText,
34
- this.redeemedText,
35
- ]);
31
+ useRequestRerender([this.columnTitle]);
36
32
  return h(Host, { style: { display: "none" } });
37
33
  }
38
34
  static get is() { return "sqm-rewards-table-reward-column"; }
@@ -46,9 +46,6 @@ export class RewardTableUserColumn {
46
46
  this.deletedUser,
47
47
  this.anonymousUser,
48
48
  this.columnTitle,
49
- this.rewardExchangeText,
50
- this.referralText,
51
- this.referralText,
52
49
  ]);
53
50
  return h(Host, { style: { display: "none" } });
54
51
  }
@@ -29,7 +29,7 @@ export class RewardTableStatusColumn {
29
29
  return this.columnTitle;
30
30
  }
31
31
  render() {
32
- useRequestRerender([this.columnTitle, this.expiryText]);
32
+ useRequestRerender([this.columnTitle]);
33
33
  return h(Host, { style: { display: "none" } });
34
34
  }
35
35
  static get is() { return "sqm-rewards-table-status-column"; }
@@ -16301,11 +16301,7 @@ const RewardsTableColumn = class {
16301
16301
  return this.columnTitle;
16302
16302
  }
16303
16303
  render() {
16304
- useRequestRerender([
16305
- this.columnTitle,
16306
- this.availableText,
16307
- this.redeemedText,
16308
- ]);
16304
+ useRequestRerender([this.columnTitle]);
16309
16305
  return h$1(Host, { style: { display: "none" } });
16310
16306
  }
16311
16307
  };
@@ -16358,7 +16354,7 @@ const RewardTableRewardsCell = class {
16358
16354
  jss.setup(create());
16359
16355
  const sheet = jss.createStyleSheet(style);
16360
16356
  const styleString = sheet.toString();
16361
- function RewardValue({ reward }) {
16357
+ const RewardValue = ({ reward }) => {
16362
16358
  var _a;
16363
16359
  const pimpedPrettyValue = reward.unit === "CENTS"
16364
16360
  ? reward.prettyValue.replace(/USD/gi, "$")
@@ -16413,7 +16409,7 @@ const RewardTableRewardsCell = class {
16413
16409
  return (h$1("div", null, h$1("style", { type: "text/css" }, styleString), h$1("div", { class: sheet.classes.Container }, h$1("span", { style: { color: "#232323" } }, pimpedPrettyValue), " ", h$1("br", null), " ", h$1("div", { class: sheet.classes.Progress }), progressBarSubtext)));
16414
16410
  }
16415
16411
  return h$1("span", { style: { color: "#232323" } }, pimpedPrettyValue);
16416
- }
16412
+ };
16417
16413
  return (h$1("div", { style: { display: "contents" } }, h$1("style", { type: "text/css" }, styleString), h$1(TextSpanView, { type: "p" }, h$1("span", { class: sheet.classes.BoldText }, h$1(RewardValue, { reward: this.reward })))));
16418
16414
  }
16419
16415
  };
@@ -16423,16 +16419,16 @@ const RewardTableSourceCell = class {
16423
16419
  registerInstance(this, hostRef);
16424
16420
  }
16425
16421
  render() {
16426
- function RewardSource({ reward }) {
16422
+ const RewardSource = ({ reward }) => {
16427
16423
  return (h$1("span", null, intl.formatMessage({
16428
16424
  id: "rewardSourceText",
16429
16425
  defaultMessage: this.rewardSourceText,
16430
16426
  }, {
16431
16427
  rewardSource: reward.rewardSource,
16432
16428
  })));
16433
- }
16429
+ };
16434
16430
  const SOURCE_COLUMN_LENGTH = 21;
16435
- function RewardExchangeBadge({ reward }) {
16431
+ const RewardExchangeBadge = ({ reward }) => {
16436
16432
  var _a;
16437
16433
  const rewardExchange = (h$1("div", null, this.rewardExchangeText, h$1("br", null), (_a = reward.exchangedRewardRedemptionTransaction) === null || _a === void 0 ? void 0 :
16438
16434
  _a.prettyRedeemedCredit, " → ", reward.prettyValue));
@@ -16444,9 +16440,9 @@ const RewardTableSourceCell = class {
16444
16440
  verticalAlign: "top",
16445
16441
  maxWidth: "155px",
16446
16442
  } }, rewardExchange));
16447
- }
16443
+ };
16448
16444
  // TODO: user type
16449
- function getFullName(user) {
16445
+ const getFullName = (user) => {
16450
16446
  if (!user)
16451
16447
  return this.deletedUserText;
16452
16448
  if (!user.firstName && !user.lastName)
@@ -16456,7 +16452,7 @@ const RewardTableSourceCell = class {
16456
16452
  if (!user.lastName)
16457
16453
  return `${user.firstName}`;
16458
16454
  return `${user.firstName} ${user.lastName}`;
16459
- }
16455
+ };
16460
16456
  const source = () => this.reward.rewardSource === "FRIEND_SIGNUP" ||
16461
16457
  this.reward.rewardSource === "REFERRED" ? (h$1("div", null, intl.formatMessage({
16462
16458
  id: "referralText",
@@ -16511,9 +16507,6 @@ const RewardTableUserColumn = class {
16511
16507
  this.deletedUser,
16512
16508
  this.anonymousUser,
16513
16509
  this.columnTitle,
16514
- this.rewardExchangeText,
16515
- this.referralText,
16516
- this.referralText,
16517
16510
  ]);
16518
16511
  return h$1(Host, { style: { display: "none" } });
16519
16512
  }
@@ -16598,7 +16591,7 @@ const RewardTableStatusColumn = class {
16598
16591
  return this.columnTitle;
16599
16592
  }
16600
16593
  render() {
16601
- useRequestRerender([this.columnTitle, this.expiryText]);
16594
+ useRequestRerender([this.columnTitle]);
16602
16595
  return h$1(Host, { style: { display: "none" } });
16603
16596
  }
16604
16597
  };