@eqtylab/equality 2.1.0 → 2.1.2

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.js CHANGED
@@ -3499,6 +3499,18 @@ var Heading = forwardRef(
3499
3499
  Heading.displayName = "Heading";
3500
3500
  var ControlStatusBadge = ({ status, display = "both" }) => {
3501
3501
  const config = getStatusConfig(status);
3502
+ if (config.subLabel) {
3503
+ if (display === "icon-only") {
3504
+ return /* @__PURE__ */ jsx(Badge, { icon: config.icon, display: "icon-only", className: config.className, variant: null, children: config.label });
3505
+ }
3506
+ return /* @__PURE__ */ jsxs("div", { className: cn(styles61["split-badge"], config.className), children: [
3507
+ /* @__PURE__ */ jsxs("span", { className: styles61["split-badge__status"], children: [
3508
+ display !== "text-only" && /* @__PURE__ */ jsx(Icon, { icon: config.icon, size: "xs", className: styles61["icon"] }),
3509
+ config.label
3510
+ ] }),
3511
+ /* @__PURE__ */ jsx("span", { className: styles61["split-badge__sub-status"], children: config.subLabel })
3512
+ ] });
3513
+ }
3502
3514
  return /* @__PURE__ */ jsx(Badge, { icon: config.icon, display, className: config.className, variant: null, children: config.label });
3503
3515
  };
3504
3516
  var getStatusConfig = (status) => {
@@ -3511,7 +3523,7 @@ var getStatusConfig = (status) => {
3511
3523
  };
3512
3524
  case "not-started":
3513
3525
  return {
3514
- icon: "Circle",
3526
+ icon: "CircleDashed",
3515
3527
  className: styles61["badge--not-started"],
3516
3528
  label: "Not Started"
3517
3529
  };
@@ -3529,9 +3541,10 @@ var getStatusConfig = (status) => {
3529
3541
  };
3530
3542
  case "comment":
3531
3543
  return {
3532
- icon: "MessageCircle",
3544
+ icon: "Eye",
3533
3545
  className: styles61["badge--comment"],
3534
- label: "Comment"
3546
+ label: "In Review",
3547
+ subLabel: "General"
3535
3548
  };
3536
3549
  case "not-applicable":
3537
3550
  return {
@@ -3541,44 +3554,40 @@ var getStatusConfig = (status) => {
3541
3554
  };
3542
3555
  case "accepted":
3543
3556
  return {
3544
- icon: /* @__PURE__ */ jsx(MessageCircleCheckIcon, {}),
3557
+ icon: "Eye",
3545
3558
  className: styles61["badge--accepted"],
3546
- label: "Accepted"
3559
+ label: "In Review",
3560
+ subLabel: "Accepted"
3547
3561
  };
3548
3562
  case "questioned":
3549
3563
  return {
3550
- icon: "MessageCircleQuestion",
3564
+ icon: "Eye",
3551
3565
  className: styles61["badge--question"],
3552
- label: "Questioned"
3553
- };
3554
- case "general":
3555
- return {
3556
- icon: "MessageCircle",
3557
- className: styles61["badge--comment"],
3558
- label: "General"
3566
+ label: "In Review",
3567
+ subLabel: "Questioned"
3559
3568
  };
3560
3569
  case "compliant":
3561
3570
  return {
3562
- icon: "Check",
3571
+ icon: /* @__PURE__ */ jsx(CircleCheckFillIcon, {}),
3563
3572
  className: styles61["badge--compliant"],
3564
3573
  label: "Compliant"
3565
3574
  };
3566
3575
  case "non-compliant":
3567
3576
  return {
3568
- icon: "TriangleAlert",
3577
+ icon: "X",
3569
3578
  className: styles61["badge--non-compliant"],
3570
3579
  label: "Non-compliant"
3571
3580
  };
3572
3581
  default:
3573
3582
  return {
3574
- icon: "Circle",
3583
+ icon: "CircleDashed",
3575
3584
  className: styles61["badge--not-started"],
3576
3585
  label: status
3577
3586
  };
3578
3587
  }
3579
3588
  };
3580
- var MessageCircleCheckIcon = ({ className }) => {
3581
- return /* @__PURE__ */ jsxs(
3589
+ var CircleCheckFillIcon = ({ className }) => {
3590
+ return /* @__PURE__ */ jsx(
3582
3591
  "svg",
3583
3592
  {
3584
3593
  className,
@@ -3586,15 +3595,8 @@ var MessageCircleCheckIcon = ({ className }) => {
3586
3595
  width: "12",
3587
3596
  height: "12",
3588
3597
  viewBox: "0 0 24 24",
3589
- fill: "none",
3590
- stroke: "currentColor",
3591
- "stroke-width": "2",
3592
- "stroke-linecap": "round",
3593
- "stroke-linejoin": "round",
3594
- children: [
3595
- /* @__PURE__ */ jsx("path", { d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" }),
3596
- /* @__PURE__ */ jsx("path", { d: "m9 12 2 2 4-4" })
3597
- ]
3598
+ fill: "currentColor",
3599
+ children: /* @__PURE__ */ jsx("path", { d: "M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM15.707 9.29297C15.3165 8.90245 14.6835 8.90244 14.293 9.29297L11 12.5859L9.70703 11.293C9.31651 10.9024 8.68349 10.9024 8.29297 11.293C7.90244 11.6835 7.90245 12.3165 8.29297 12.707L10.293 14.707C10.6835 15.0976 11.3165 15.0976 11.707 14.707L15.707 10.707C16.0976 10.3165 16.0976 9.68349 15.707 9.29297Z" })
3598
3600
  }
3599
3601
  );
3600
3602
  };