@arbidocs/react 0.4.30 → 0.4.31

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.
@@ -55,8 +55,10 @@ interface TooltipProps {
55
55
  declare function Tooltip({ children, delayDuration }: TooltipProps): React$1.JSX.Element;
56
56
  interface TooltipTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
57
57
  asChild?: boolean;
58
+ /** Allow explanatory tooltips on controls that already have a visible label. */
59
+ showWithText?: boolean;
58
60
  }
59
- declare function TooltipTrigger({ asChild, children, ...props }: TooltipTriggerProps): React$1.JSX.Element;
61
+ declare function TooltipTrigger({ asChild, showWithText, children, ...props }: TooltipTriggerProps): React$1.JSX.Element;
60
62
  interface TooltipContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
61
63
  side?: Side;
62
64
  sideOffset?: number;
@@ -74,6 +76,7 @@ interface IconToggleProps {
74
76
  isActive: boolean;
75
77
  onToggle: (isActive: boolean) => void;
76
78
  colors: ColorClasses;
79
+ inactiveColors?: ColorClasses;
77
80
  fillWhenActive?: boolean;
78
81
  disabled?: boolean;
79
82
  /** Tooltip to show when disabled (e.g., "You cannot unshare this resource") */
@@ -88,7 +91,7 @@ interface IconToggleProps {
88
91
  showTooltip?: boolean;
89
92
  'data-testid'?: string;
90
93
  }
91
- declare function IconToggle({ icon: Icon, isActive, onToggle, colors, fillWhenActive, disabled, disabledTooltip, showLabel, label, tooltipActive, tooltipInactive, tooltipMixed, isMixed, showTooltip, 'data-testid': dataTestId, }: IconToggleProps): React$1.JSX.Element;
94
+ declare function IconToggle({ icon: Icon, isActive, onToggle, colors, inactiveColors, fillWhenActive, disabled, disabledTooltip, showLabel, label, tooltipActive, tooltipInactive, tooltipMixed, isMixed, showTooltip, 'data-testid': dataTestId, }: IconToggleProps): React$1.JSX.Element;
92
95
 
93
96
  /**
94
97
  * VisibilityToggle Component
@@ -1261,7 +1264,7 @@ declare const VISIBILITY_ICONS: {
1261
1264
  SHARED: React__default.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React__default.RefAttributes<SVGSVGElement>>;
1262
1265
  };
1263
1266
  /** Render the private/shared visibility glyph. */
1264
- declare const VisibilityIcon: ({ isShared, ...props }: {
1267
+ declare const VisibilityIcon: ({ isShared, className, ...props }: {
1265
1268
  isShared: boolean;
1266
1269
  className?: string;
1267
1270
  size?: number;
@@ -55,8 +55,10 @@ interface TooltipProps {
55
55
  declare function Tooltip({ children, delayDuration }: TooltipProps): React$1.JSX.Element;
56
56
  interface TooltipTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
57
57
  asChild?: boolean;
58
+ /** Allow explanatory tooltips on controls that already have a visible label. */
59
+ showWithText?: boolean;
58
60
  }
59
- declare function TooltipTrigger({ asChild, children, ...props }: TooltipTriggerProps): React$1.JSX.Element;
61
+ declare function TooltipTrigger({ asChild, showWithText, children, ...props }: TooltipTriggerProps): React$1.JSX.Element;
60
62
  interface TooltipContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
61
63
  side?: Side;
62
64
  sideOffset?: number;
@@ -74,6 +76,7 @@ interface IconToggleProps {
74
76
  isActive: boolean;
75
77
  onToggle: (isActive: boolean) => void;
76
78
  colors: ColorClasses;
79
+ inactiveColors?: ColorClasses;
77
80
  fillWhenActive?: boolean;
78
81
  disabled?: boolean;
79
82
  /** Tooltip to show when disabled (e.g., "You cannot unshare this resource") */
@@ -88,7 +91,7 @@ interface IconToggleProps {
88
91
  showTooltip?: boolean;
89
92
  'data-testid'?: string;
90
93
  }
91
- declare function IconToggle({ icon: Icon, isActive, onToggle, colors, fillWhenActive, disabled, disabledTooltip, showLabel, label, tooltipActive, tooltipInactive, tooltipMixed, isMixed, showTooltip, 'data-testid': dataTestId, }: IconToggleProps): React$1.JSX.Element;
94
+ declare function IconToggle({ icon: Icon, isActive, onToggle, colors, inactiveColors, fillWhenActive, disabled, disabledTooltip, showLabel, label, tooltipActive, tooltipInactive, tooltipMixed, isMixed, showTooltip, 'data-testid': dataTestId, }: IconToggleProps): React$1.JSX.Element;
92
95
 
93
96
  /**
94
97
  * VisibilityToggle Component
@@ -1261,7 +1264,7 @@ declare const VISIBILITY_ICONS: {
1261
1264
  SHARED: React__default.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React__default.RefAttributes<SVGSVGElement>>;
1262
1265
  };
1263
1266
  /** Render the private/shared visibility glyph. */
1264
- declare const VisibilityIcon: ({ isShared, ...props }: {
1267
+ declare const VisibilityIcon: ({ isShared, className, ...props }: {
1265
1268
  isShared: boolean;
1266
1269
  className?: string;
1267
1270
  size?: number;