@realtek/core-theme 0.0.228 → 0.0.230

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-lib/index.js CHANGED
@@ -642,7 +642,7 @@ async function jo(e, t) {
642
642
  async function Mo(e) {
643
643
  return uo(await a(o, `/submissions/vms-approve?submissionId=${encodeURIComponent(e)}`));
644
644
  }
645
- async function No(t, { submissionId: n = "", billRate: r, payRate: i, currency: o = "$", referralRate: s = 0, vmsPercent: c = 0, documentIds: l = [], remarks: u = null } = {}) {
645
+ async function No(t, { submissionId: n = "", billRate: r, payRate: i, currency: o = "$", referralRate: s, vmsPercent: c = 0, documentIds: l = [], remarks: u = null } = {}) {
646
646
  let d = t ? `/workforce-engagements/${encodeURIComponent(t)}/cfo-approval/send` : `/submissions/${encodeURIComponent(n)}/cfo-approval/send`;
647
647
  if (!t && !n) throw Error("Submission is required to send for approval.");
648
648
  let f = typeof window < "u" ? window.location.origin : "", p = t || n;
@@ -662,7 +662,7 @@ async function No(t, { submissionId: n = "", billRate: r, payRate: i, currency:
662
662
  candidateAcceptedPayUnit: "hr",
663
663
  candidateAcceptedRateNegotiable: !1
664
664
  },
665
- referralRate: Number(s) || 0,
665
+ ...s == null ? {} : { referralRate: Number(s) || 0 },
666
666
  vmsPercent: Number(c) || 0,
667
667
  documentIds: l,
668
668
  remarks: u,
@@ -8354,6 +8354,9 @@ var Kp = {
8354
8354
  submitted: "submitted",
8355
8355
  submission: "submitted",
8356
8356
  "internal submission": "submitted",
8357
+ send_for_approval: "sendForApproval",
8358
+ "send for approval": "sendForApproval",
8359
+ sendforapproval: "sendForApproval",
8357
8360
  resubmit: "resubmitted",
8358
8361
  resubmitted: "resubmitted",
8359
8362
  resent_for_approval: "resent",
@@ -8405,6 +8408,11 @@ var Kp = {
8405
8408
  icon: /* @__PURE__ */ X(oa, {}),
8406
8409
  label: "Submitted"
8407
8410
  },
8411
+ sendForApproval: {
8412
+ tone: "info",
8413
+ icon: /* @__PURE__ */ X(oa, {}),
8414
+ label: "Send for Approval"
8415
+ },
8408
8416
  resubmitted: {
8409
8417
  tone: "purple",
8410
8418
  icon: /* @__PURE__ */ X(Zi, {}),
@@ -8456,6 +8464,8 @@ var Kp = {
8456
8464
  label: "Activity"
8457
8465
  }
8458
8466
  }, Jp = [
8467
+ [/\b(?:submitted|sent|send)\b[\s\S]*\b(?:cfo|finance)\b[\s\S]*\bfor approval\b/i, "sendForApproval"],
8468
+ [/\bsend(?:ing)?\s+for\s+approval\b/i, "sendForApproval"],
8459
8469
  [/\breject/i, "rejected"],
8460
8470
  [/\bresent\b/i, "resent"],
8461
8471
  [/\bresubmit/i, "resubmitted"],
@@ -8478,7 +8488,7 @@ function Yp(e, t) {
8478
8488
  return "default";
8479
8489
  }
8480
8490
  function Xp(e = {}, t = "") {
8481
- return qp[Yp(e.activityType ?? e.action, t || e.activityComments)] ?? qp.default;
8491
+ return qp[Yp(e.activityType ?? e.activity_type ?? e.type ?? e.action, t || e.activityComments)] ?? qp.default;
8482
8492
  }
8483
8493
  //#endregion
8484
8494
  //#region src/components/detail/ActivityTab.jsx