@eqtylab/equality 1.5.0 → 1.6.0

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
@@ -51,14 +51,14 @@ declare const AlertDialogFooter: {
51
51
  declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
52
52
  declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
53
53
  declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
54
- variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
54
+ variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
55
55
  size?: "sm" | "md" | "lg" | null | undefined;
56
56
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
57
57
  prefix?: React$1.ReactNode;
58
58
  suffix?: React$1.ReactNode;
59
59
  } & React$1.RefAttributes<HTMLButtonElement>>;
60
60
  declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
61
- variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
61
+ variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
62
62
  size?: "sm" | "md" | "lg" | null | undefined;
63
63
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
64
64
  prefix?: React$1.ReactNode;
@@ -166,7 +166,7 @@ declare const BgGradient: ({ theme, placement, }: {
166
166
  }) => react_jsx_runtime.JSX.Element;
167
167
 
168
168
  declare const buttonVariants: (props?: ({
169
- variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
169
+ variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
170
170
  size?: "sm" | "md" | "lg" | null | undefined;
171
171
  } & class_variance_authority_types.ClassProp) | undefined) => string;
172
172
  type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
@@ -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' | 'code' | 'compute' | 'database' | 'dataset' | 'document' | 'guard' | 'guardrail' | 'inference' | 'model' | 'prompt' | 'system-prompt' | 'context' | 'reasoning' | 'system-parameters' | 'token' | 'tools' | 'unknown';
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';
191
191
  type ResourceDisplayMode = BadgeDisplayMode;
192
192
  interface ResourceBadgeProps {
193
193
  type: ResourceType;
@@ -667,6 +667,7 @@ declare const TableContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttr
667
667
  elevation?: string | number | null | undefined;
668
668
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
669
669
  tableLayout?: "auto" | "fixed";
670
+ border?: boolean;
670
671
  } & React$1.RefAttributes<HTMLTableElement>>;
671
672
  declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & {
672
673
  sticky?: boolean;
@@ -711,6 +712,7 @@ interface TableProps extends VariantProps<typeof tableElevationVariants> {
711
712
  declare const tableElevationVariants: (props?: ({
712
713
  elevation?: string | number | null | undefined;
713
714
  } & class_variance_authority_types.ClassProp) | undefined) => string;
715
+ /** @deprecated Use the compositional table primitives (`TableContainer`, `TableHeader`, `TableBody`, `TableRow`, `TableHead`, `TableCell`) instead. */
714
716
  declare const Table: ({ columns, rows, className, border, elevation, emptyState, tableLayout, }: TableProps) => react_jsx_runtime.JSX.Element;
715
717
 
716
718
  declare const TabsContainer: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
package/dist/index.d.ts CHANGED
@@ -51,14 +51,14 @@ declare const AlertDialogFooter: {
51
51
  declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
52
52
  declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
53
53
  declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
54
- variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
54
+ variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
55
55
  size?: "sm" | "md" | "lg" | null | undefined;
56
56
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
57
57
  prefix?: React$1.ReactNode;
58
58
  suffix?: React$1.ReactNode;
59
59
  } & React$1.RefAttributes<HTMLButtonElement>>;
60
60
  declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
61
- variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
61
+ variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
62
62
  size?: "sm" | "md" | "lg" | null | undefined;
63
63
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
64
64
  prefix?: React$1.ReactNode;
@@ -166,7 +166,7 @@ declare const BgGradient: ({ theme, placement, }: {
166
166
  }) => react_jsx_runtime.JSX.Element;
167
167
 
168
168
  declare const buttonVariants: (props?: ({
169
- variant?: "danger" | "link" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
169
+ variant?: "link" | "danger" | "navigation" | "primary" | "secondary" | "tertiary" | null | undefined;
170
170
  size?: "sm" | "md" | "lg" | null | undefined;
171
171
  } & class_variance_authority_types.ClassProp) | undefined) => string;
172
172
  type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
@@ -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' | 'code' | 'compute' | 'database' | 'dataset' | 'document' | 'guard' | 'guardrail' | 'inference' | 'model' | 'prompt' | 'system-prompt' | 'context' | 'reasoning' | 'system-parameters' | 'token' | 'tools' | 'unknown';
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';
191
191
  type ResourceDisplayMode = BadgeDisplayMode;
192
192
  interface ResourceBadgeProps {
193
193
  type: ResourceType;
@@ -667,6 +667,7 @@ declare const TableContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttr
667
667
  elevation?: string | number | null | undefined;
668
668
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
669
669
  tableLayout?: "auto" | "fixed";
670
+ border?: boolean;
670
671
  } & React$1.RefAttributes<HTMLTableElement>>;
671
672
  declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & {
672
673
  sticky?: boolean;
@@ -711,6 +712,7 @@ interface TableProps extends VariantProps<typeof tableElevationVariants> {
711
712
  declare const tableElevationVariants: (props?: ({
712
713
  elevation?: string | number | null | undefined;
713
714
  } & class_variance_authority_types.ClassProp) | undefined) => string;
715
+ /** @deprecated Use the compositional table primitives (`TableContainer`, `TableHeader`, `TableBody`, `TableRow`, `TableHead`, `TableCell`) instead. */
714
716
  declare const Table: ({ columns, rows, className, border, elevation, emptyState, tableLayout, }: TableProps) => react_jsx_runtime.JSX.Element;
715
717
 
716
718
  declare const TabsContainer: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
package/dist/index.js CHANGED
@@ -650,12 +650,24 @@ var getTypeConfig = (type) => {
650
650
  className: styles9["badge--benchmark"],
651
651
  label: "Benchmark"
652
652
  };
653
+ case "benchmark-result":
654
+ return {
655
+ icon: "FileChartLine",
656
+ className: styles9["badge--benchmark-result"],
657
+ label: "Benchmark Result"
658
+ };
653
659
  case "code":
654
660
  return {
655
661
  icon: "Code",
656
662
  className: styles9["badge--code"],
657
663
  label: "Code"
658
664
  };
665
+ case "binary":
666
+ return {
667
+ icon: "Binary",
668
+ className: styles9["badge--binary"],
669
+ label: "Binary"
670
+ };
659
671
  case "compute":
660
672
  return {
661
673
  icon: "Cpu",
@@ -680,11 +692,17 @@ var getTypeConfig = (type) => {
680
692
  className: styles9["badge--document"],
681
693
  label: "Document"
682
694
  };
683
- case "guard":
695
+ case "skill":
684
696
  return {
685
- icon: "Shield",
686
- className: styles9["badge--guard"],
687
- label: "Guard"
697
+ icon: "FileCog",
698
+ className: styles9["badge--skill"],
699
+ label: "Skill"
700
+ };
701
+ case "media":
702
+ return {
703
+ icon: "FileImage",
704
+ className: styles9["badge--media"],
705
+ label: "Media"
688
706
  };
689
707
  case "guardrail":
690
708
  return {
@@ -692,12 +710,6 @@ var getTypeConfig = (type) => {
692
710
  className: styles9["badge--guardrail"],
693
711
  label: "Guardrail"
694
712
  };
695
- case "inference":
696
- return {
697
- icon: "Zap",
698
- className: styles9["badge--inference"],
699
- label: "Inference"
700
- };
701
713
  case "model":
702
714
  return {
703
715
  icon: "Brain",
@@ -716,12 +728,6 @@ var getTypeConfig = (type) => {
716
728
  className: styles9["badge--system-prompt"],
717
729
  label: "System Prompt"
718
730
  };
719
- case "context":
720
- return {
721
- icon: "MessageSquareQuote",
722
- className: styles9["badge--context"],
723
- label: "Context"
724
- };
725
731
  case "reasoning":
726
732
  return {
727
733
  icon: "MessageSquareMore",
@@ -734,19 +740,20 @@ var getTypeConfig = (type) => {
734
740
  className: styles9["badge--token"],
735
741
  label: "Token"
736
742
  };
737
- case "tools":
743
+ case "tool":
738
744
  return {
739
745
  icon: "Wrench",
740
- className: styles9["badge--tools"],
741
- label: "Tools"
746
+ className: styles9["badge--tool"],
747
+ label: "Tool"
742
748
  };
743
- case "system-parameters":
749
+ case "config":
744
750
  return {
745
751
  icon: "Settings2",
746
- className: styles9["badge--system-parameters"],
747
- label: "System Parameters"
752
+ className: styles9["badge--config"],
753
+ label: "Configuration"
748
754
  };
749
755
  case "unknown":
756
+ default:
750
757
  return {
751
758
  icon: "Box",
752
759
  className: styles9["badge--unknown"],
@@ -2702,10 +2709,15 @@ function SortButton({
2702
2709
  ] });
2703
2710
  }
2704
2711
  var tableElevationVariants = generateElevationVariants(styles50, "table", ELEVATION.RAISED);
2705
- var TableContainer = React15.forwardRef(({ className, style, elevation = ELEVATION.RAISED, tableLayout, ...props }, ref) => /* @__PURE__ */ jsx(
2712
+ var TableContainer = React15.forwardRef(({ className, style, elevation = ELEVATION.RAISED, tableLayout, border, ...props }, ref) => /* @__PURE__ */ jsx(
2706
2713
  "div",
2707
2714
  {
2708
- className: cn(styles50["table"], tableElevationVariants({ elevation }), className),
2715
+ className: cn(
2716
+ styles50["table"],
2717
+ tableElevationVariants({ elevation }),
2718
+ border && styles50["table-border"],
2719
+ className
2720
+ ),
2709
2721
  style,
2710
2722
  children: /* @__PURE__ */ jsx(
2711
2723
  "table",