@eqtylab/equality 1.7.1 → 1.7.3

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.d.cts CHANGED
@@ -187,7 +187,7 @@ type ButtonProps = VariantProps<typeof buttonVariants> & ((ButtonBaseProps & {
187
187
  }));
188
188
  declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
189
189
 
190
- type ResourceType = 'agent' | 'benchmark' | 'benchmark-result' | 'binary' | 'code' | 'compute' | 'database' | 'dataset' | 'document' | 'media' | 'skill' | 'guardrail' | 'model' | 'prompt' | 'system-prompt' | 'reasoning' | 'config' | 'token' | 'tool' | 'unknown';
190
+ type ResourceType = 'agent' | 'benchmark' | 'benchmark-result' | 'binary' | 'certificate' | 'code' | 'compute' | 'credential' | 'database' | 'dataset' | 'document' | 'media' | 'skill' | 'guardrail' | 'model' | 'prompt' | 'system-prompt' | 'reasoning' | 'config' | 'token' | 'tool' | 'unknown';
191
191
  type ResourceDisplayMode = BadgeDisplayMode;
192
192
  interface ResourceBadgeProps {
193
193
  type: ResourceType;
@@ -473,7 +473,7 @@ type Variant = 'default' | 'primary' | 'danger' | 'success' | 'warning';
473
473
  interface MetricCardProps extends VariantProps<typeof metricCardElevationVariants> {
474
474
  value: string | number;
475
475
  label: string;
476
- icon: React.ReactElement | string;
476
+ icon?: React.ReactElement | string;
477
477
  variant?: Variant;
478
478
  className?: string;
479
479
  }
package/dist/index.d.ts CHANGED
@@ -187,7 +187,7 @@ type ButtonProps = VariantProps<typeof buttonVariants> & ((ButtonBaseProps & {
187
187
  }));
188
188
  declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
189
189
 
190
- type ResourceType = 'agent' | 'benchmark' | 'benchmark-result' | 'binary' | 'code' | 'compute' | 'database' | 'dataset' | 'document' | 'media' | 'skill' | 'guardrail' | 'model' | 'prompt' | 'system-prompt' | 'reasoning' | 'config' | 'token' | 'tool' | 'unknown';
190
+ type ResourceType = 'agent' | 'benchmark' | 'benchmark-result' | 'binary' | 'certificate' | 'code' | 'compute' | 'credential' | 'database' | 'dataset' | 'document' | 'media' | 'skill' | 'guardrail' | 'model' | 'prompt' | 'system-prompt' | 'reasoning' | 'config' | 'token' | 'tool' | 'unknown';
191
191
  type ResourceDisplayMode = BadgeDisplayMode;
192
192
  interface ResourceBadgeProps {
193
193
  type: ResourceType;
@@ -473,7 +473,7 @@ type Variant = 'default' | 'primary' | 'danger' | 'success' | 'warning';
473
473
  interface MetricCardProps extends VariantProps<typeof metricCardElevationVariants> {
474
474
  value: string | number;
475
475
  label: string;
476
- icon: React.ReactElement | string;
476
+ icon?: React.ReactElement | string;
477
477
  variant?: Variant;
478
478
  className?: string;
479
479
  }
package/dist/index.js CHANGED
@@ -667,12 +667,24 @@ var getTypeConfig = (type) => {
667
667
  className: styles9["badge--binary"],
668
668
  label: "Binary"
669
669
  };
670
+ case "certificate":
671
+ return {
672
+ icon: "Award",
673
+ className: styles9["badge--certificate"],
674
+ label: "Certificate"
675
+ };
670
676
  case "compute":
671
677
  return {
672
678
  icon: "Cpu",
673
679
  className: styles9["badge--compute"],
674
680
  label: "Compute"
675
681
  };
682
+ case "credential":
683
+ return {
684
+ icon: "IdCardLanyard",
685
+ className: styles9["badge--credential"],
686
+ label: "Credential"
687
+ };
676
688
  case "database":
677
689
  return {
678
690
  icon: "Database",
@@ -2030,7 +2042,7 @@ var MetricCard = ({
2030
2042
  return /* @__PURE__ */ jsxs("div", { className: cn(metricCardElevationVariants({ elevation }), className), children: [
2031
2043
  /* @__PURE__ */ jsxs("div", { className: styles31["value-container"], children: [
2032
2044
  /* @__PURE__ */ jsx("p", { className: cn(styles31.value), children: value }),
2033
- /* @__PURE__ */ jsx(
2045
+ icon && /* @__PURE__ */ jsx(
2034
2046
  Icon,
2035
2047
  {
2036
2048
  icon,