@realtek/core-theme 0.0.166 → 0.0.167

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
@@ -18558,11 +18558,11 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18558
18558
  _,
18559
18559
  ee,
18560
18560
  u
18561
- ]), F = P.currency, L = u.readOnly, ne = (e) => {
18561
+ ]), F = N && (!!h || Number(P.referralRate) > 0), L = P.currency, ne = u.readOnly, re = (e) => {
18562
18562
  g(e);
18563
18563
  let t = (i ?? []).find((t) => t.value === e);
18564
18564
  t?.lastRate != null && v(Number(t.lastRate) || 0), t?.type && b(t.type), a?.(e, t);
18565
- }, re = async (e) => {
18565
+ }, R = async (e) => {
18566
18566
  if (!e) return;
18567
18567
  if (e.requireReason && !x.trim()) {
18568
18568
  w(!0);
@@ -18596,7 +18596,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18596
18596
  } finally {
18597
18597
  E("");
18598
18598
  }
18599
- }, R = u.actions.primary, ie = u.actions.reject;
18599
+ }, ie = u.actions.primary, ae = u.actions.reject;
18600
18600
  return /* @__PURE__ */ Z("div", {
18601
18601
  className: `fa-panel fa-variant-${l}`,
18602
18602
  children: [
@@ -18718,7 +18718,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18718
18718
  children: "Client Job Rate"
18719
18719
  }), /* @__PURE__ */ Z("span", {
18720
18720
  className: "fa-strip-v fa-num",
18721
- children: [Kx(P.clientJobRate, F), "/hr"]
18721
+ children: [Kx(P.clientJobRate, L), "/hr"]
18722
18722
  })]
18723
18723
  }),
18724
18724
  /* @__PURE__ */ Z("span", {
@@ -18741,7 +18741,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18741
18741
  }), /* @__PURE__ */ Z("span", {
18742
18742
  className: "fa-strip-v fa-num",
18743
18743
  style: { color: "var(--color-brand, #0053a5)" },
18744
- children: [Kx(P.netClientRate, F), "/hr"]
18744
+ children: [Kx(P.netClientRate, L), "/hr"]
18745
18745
  })]
18746
18746
  }),
18747
18747
  u.sections.clientJobRate.note && /* @__PURE__ */ Z("div", {
@@ -18780,7 +18780,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18780
18780
  label: "Employer Rate",
18781
18781
  sub: "as submitted by recruiter",
18782
18782
  value: /* @__PURE__ */ Z(Y, { children: [
18783
- Kx(P.employerRate, F),
18783
+ Kx(P.employerRate, L),
18784
18784
  " ",
18785
18785
  /* @__PURE__ */ X("span", {
18786
18786
  className: "fa-unit",
@@ -18799,7 +18799,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18799
18799
  /* @__PURE__ */ X(Xx, {
18800
18800
  label: P.employerDeductionLabel,
18801
18801
  sub: `${P.employerDeductionPercent}% of employer rate`,
18802
- value: `−${Kx(P.employerDeduction, F).replace("−", "")}`,
18802
+ value: `−${Kx(P.employerDeduction, L).replace("−", "")}`,
18803
18803
  deduction: !0
18804
18804
  }),
18805
18805
  /* @__PURE__ */ X(Xx, {
@@ -18807,7 +18807,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18807
18807
  label: "Net Employer Rate",
18808
18808
  value: /* @__PURE__ */ X("span", {
18809
18809
  style: { color: "var(--color-purple, #7c3aed)" },
18810
- children: Kx(P.netEmployerRate, F)
18810
+ children: Kx(P.netEmployerRate, L)
18811
18811
  })
18812
18812
  })
18813
18813
  ]
@@ -18839,7 +18839,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18839
18839
  precision: 2,
18840
18840
  value: p,
18841
18841
  onChange: (e) => m(Number(e ?? 0)),
18842
- prefix: F,
18842
+ prefix: L,
18843
18843
  controls: !1
18844
18844
  })]
18845
18845
  })]
@@ -18853,7 +18853,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18853
18853
  }),
18854
18854
  sub: "approved at finance review",
18855
18855
  value: /* @__PURE__ */ Z(Y, { children: [
18856
- Kx(P.proposedRate, F),
18856
+ Kx(P.proposedRate, L),
18857
18857
  " ",
18858
18858
  /* @__PURE__ */ X("span", {
18859
18859
  className: "fa-unit",
@@ -18864,7 +18864,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18864
18864
  /* @__PURE__ */ X(Xx, {
18865
18865
  label: "Discount (VMS)",
18866
18866
  sub: `${P.clientVmsPercent}% of proposed rate`,
18867
- value: `−${Kx(P.discountVms, F).replace("−", "")}`,
18867
+ value: `−${Kx(P.discountVms, L).replace("−", "")}`,
18868
18868
  deduction: !0
18869
18869
  }),
18870
18870
  /* @__PURE__ */ X(Xx, {
@@ -18872,13 +18872,13 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18872
18872
  label: "Net Proposed Rate",
18873
18873
  value: /* @__PURE__ */ X("span", {
18874
18874
  style: { color: "var(--color-brand, #0053a5)" },
18875
- children: Kx(P.netProposedRate, F)
18875
+ children: Kx(P.netProposedRate, L)
18876
18876
  })
18877
18877
  })
18878
18878
  ]
18879
18879
  })]
18880
18880
  })]
18881
- }), M && !L && /* @__PURE__ */ Z("div", {
18881
+ }), M && !ne && /* @__PURE__ */ Z("div", {
18882
18882
  className: "fa-referral-toggle",
18883
18883
  children: [/* @__PURE__ */ X(I, {
18884
18884
  checked: k,
@@ -18918,7 +18918,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18918
18918
  className: "fa-referral-select",
18919
18919
  placeholder: "Select a referral",
18920
18920
  value: h ?? void 0,
18921
- onChange: ne,
18921
+ onChange: re,
18922
18922
  options: i ?? [],
18923
18923
  showSearch: !0,
18924
18924
  optionFilterProp: "label"
@@ -18937,7 +18937,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18937
18937
  precision: 2,
18938
18938
  value: _,
18939
18939
  onChange: (e) => v(Number(e ?? 0)),
18940
- prefix: F,
18940
+ prefix: L,
18941
18941
  controls: !1,
18942
18942
  disabled: !h
18943
18943
  })]
@@ -18968,7 +18968,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18968
18968
  children: [
18969
18969
  "Last referral rate paid to this company:",
18970
18970
  " ",
18971
- /* @__PURE__ */ X("b", { children: _ ? Kx(_, F) : "—" })
18971
+ /* @__PURE__ */ X("b", { children: _ ? Kx(_, L) : "—" })
18972
18972
  ]
18973
18973
  })
18974
18974
  ]
@@ -18984,7 +18984,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
18984
18984
  }), /* @__PURE__ */ X(Xx, {
18985
18985
  label: "Referral Rate",
18986
18986
  sub: y === "One-time" ? "deducted once, this payout only" : "deducted every pay cycle",
18987
- value: `−${Kx(_, F).replace("−", "")} /hr`,
18987
+ value: `−${Kx(_, L).replace("−", "")} /hr`,
18988
18988
  deduction: !0
18989
18989
  })]
18990
18990
  })
@@ -19006,7 +19006,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
19006
19006
  children: [
19007
19007
  /* @__PURE__ */ X(Zx, {
19008
19008
  label: "Net Proposed Rate",
19009
- value: /* @__PURE__ */ Z(Y, { children: [Kx(P.netProposedRate, F), /* @__PURE__ */ X("span", {
19009
+ value: /* @__PURE__ */ Z(Y, { children: [Kx(P.netProposedRate, L), /* @__PURE__ */ X("span", {
19010
19010
  className: "fa-u",
19011
19011
  children: "/hr"
19012
19012
  })] })
@@ -19017,18 +19017,18 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
19017
19017
  }),
19018
19018
  /* @__PURE__ */ X(Zx, {
19019
19019
  label: "Net Employer Rate",
19020
- value: /* @__PURE__ */ Z(Y, { children: [Kx(P.netEmployerRate, F), /* @__PURE__ */ X("span", {
19020
+ value: /* @__PURE__ */ Z(Y, { children: [Kx(P.netEmployerRate, L), /* @__PURE__ */ X("span", {
19021
19021
  className: "fa-u",
19022
19022
  children: "/hr"
19023
19023
  })] })
19024
19024
  }),
19025
- ee && referralExists && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("span", {
19025
+ ee && F && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("span", {
19026
19026
  className: "fa-stat-arrow",
19027
19027
  children: "−"
19028
19028
  }), /* @__PURE__ */ X(Zx, {
19029
19029
  label: "Referral Rate",
19030
19030
  tone: "referral",
19031
- value: /* @__PURE__ */ Z(Y, { children: [Kx(P.referralRate, F), /* @__PURE__ */ X("span", {
19031
+ value: /* @__PURE__ */ Z(Y, { children: [Kx(P.referralRate, L), /* @__PURE__ */ X("span", {
19032
19032
  className: "fa-u",
19033
19033
  children: "/hr"
19034
19034
  })] })
@@ -19036,7 +19036,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
19036
19036
  /* @__PURE__ */ X(Zx, {
19037
19037
  hero: !0,
19038
19038
  label: "Margin",
19039
- value: /* @__PURE__ */ Z(Y, { children: [Kx(P.totalMargin, F), /* @__PURE__ */ X("span", {
19039
+ value: /* @__PURE__ */ Z(Y, { children: [Kx(P.totalMargin, L), /* @__PURE__ */ X("span", {
19040
19040
  className: "fa-u",
19041
19041
  children: "/hr"
19042
19042
  })] })
@@ -19044,7 +19044,7 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
19044
19044
  ]
19045
19045
  })]
19046
19046
  }),
19047
- ie?.requireReason && /* @__PURE__ */ Z("div", {
19047
+ ae?.requireReason && /* @__PURE__ */ Z("div", {
19048
19048
  className: "fa-reason",
19049
19049
  children: [
19050
19050
  /* @__PURE__ */ Z("label", {
@@ -19076,18 +19076,18 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
19076
19076
  className: "fa-action-note",
19077
19077
  children: e === "cfo" ? /* @__PURE__ */ Z(Y, { children: [
19078
19078
  "Approving finalizes payroll at ",
19079
- /* @__PURE__ */ Z("b", { children: [Kx(P.proposedRate, F), "/hr"] }),
19080
- referralExists ? /* @__PURE__ */ Z(Y, { children: [
19079
+ /* @__PURE__ */ Z("b", { children: [Kx(P.proposedRate, L), "/hr"] }),
19080
+ F ? /* @__PURE__ */ Z(Y, { children: [
19081
19081
  " including the ",
19082
19082
  y.toLowerCase(),
19083
19083
  " ",
19084
- /* @__PURE__ */ Z("b", { children: [Kx(_, F), "/hr"] }),
19084
+ /* @__PURE__ */ Z("b", { children: [Kx(_, L), "/hr"] }),
19085
19085
  " referral"
19086
19086
  ] }) : null,
19087
19087
  "."
19088
19088
  ] }) : /* @__PURE__ */ Z(Y, { children: [
19089
19089
  "Approving locks the ",
19090
- /* @__PURE__ */ Z("b", { children: [Kx(P.proposedRate, F), "/hr"] }),
19090
+ /* @__PURE__ */ Z("b", { children: [Kx(P.proposedRate, L), "/hr"] }),
19091
19091
  " proposed rate and moves this forward."
19092
19092
  ] })
19093
19093
  }), /* @__PURE__ */ Z("div", {
@@ -19098,20 +19098,20 @@ function Qx({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
19098
19098
  onClick: c,
19099
19099
  children: "Cancel"
19100
19100
  }),
19101
- ie && /* @__PURE__ */ X(qf, {
19101
+ ae && /* @__PURE__ */ X(qf, {
19102
19102
  danger: !0,
19103
- loading: T === ie.key,
19103
+ loading: T === ae.key,
19104
19104
  disabled: !!T,
19105
- onClick: () => re(ie),
19106
- children: ie.label
19105
+ onClick: () => R(ae),
19106
+ children: ae.label
19107
19107
  }),
19108
- R && /* @__PURE__ */ X(qf, {
19108
+ ie && /* @__PURE__ */ X(qf, {
19109
19109
  variant: "primary",
19110
19110
  icon: /* @__PURE__ */ X(He, {}),
19111
- loading: T === R.key,
19111
+ loading: T === ie.key,
19112
19112
  disabled: !!T,
19113
- onClick: () => re(R),
19114
- children: R.label
19113
+ onClick: () => R(ie),
19114
+ children: ie.label
19115
19115
  })
19116
19116
  ]
19117
19117
  })]