@dust-tt/sparkle 0.2.200 → 0.2.201

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.
@@ -1,14 +1,15 @@
1
1
  import React, { ComponentType, MouseEvent } from "react";
2
2
  type TabType<E> = {
3
- label: string;
4
- id?: E;
5
- hideLabel?: boolean;
6
3
  current: boolean;
7
- sizing?: "hug" | "expand";
4
+ disabled?: boolean;
5
+ hasSeparator?: boolean;
6
+ hideLabel?: boolean;
8
7
  icon?: ComponentType<{
9
8
  className?: string;
10
9
  }>;
11
- hasSeparator?: boolean;
10
+ id?: E;
11
+ label: string;
12
+ sizing?: "hug" | "expand";
12
13
  } & ({
13
14
  onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
14
15
  href?: never;
package/dist/cjs/index.js CHANGED
@@ -74595,7 +74595,7 @@ function Tab(_a) {
74595
74595
  ? "s-px-3"
74596
74596
  : "s-pr-3.5 s-pl-2.5"
74597
74597
  : "s-px-3"
74598
- : "s-pl-1", tabStateClasses.base, tabStateClasses.hover, tabStateClasses.dark.base, tabStateClasses.dark.hover, tabClassName);
74598
+ : "s-pl-1", tabStateClasses.base, tabStateClasses.hover, tabStateClasses.dark.base, tabStateClasses.dark.hover, tabClassName, tab.disabled ? "s-opacity-50 s-pointer-events-none" : "");
74599
74599
  var finalIconClasses = classNames("s-transition-colors s-duration-400", iconStateClasses.base, iconStateClasses.hover, iconStateClasses.dark.base, iconStateClasses.dark.hover, tabClassName);
74600
74600
  var Link = tab.href
74601
74601
  ? components.link