@dust-tt/sparkle 0.1.44 → 0.1.45

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,7 +1,8 @@
1
1
  import React, { ComponentType, MouseEvent } from "react";
2
2
  import { TooltipProps } from "./Tooltip";
3
3
  export type ButtonProps = {
4
- type?: "primary" | "primaryWarning" | "secondary" | "secondaryWarning" | "tertiary";
4
+ variant?: "primary" | "primaryWarning" | "secondary" | "secondaryWarning" | "tertiary";
5
+ type?: "button" | "menu" | "select";
5
6
  size?: "xs" | "sm" | "md";
6
7
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
7
8
  disabled?: boolean;
@@ -11,4 +12,4 @@ export type ButtonProps = {
11
12
  className?: string;
12
13
  tooltipPosition?: TooltipProps["position"];
13
14
  };
14
- export declare function Button({ type, size, onClick, disabled, labelVisible, label, icon, className, tooltipPosition, }: ButtonProps): React.JSX.Element;
15
+ export declare function Button({ variant, type, size, onClick, disabled, labelVisible, label, icon, className, tooltipPosition, }: ButtonProps): React.JSX.Element;
@@ -6,12 +6,13 @@ export interface DropdownMenuProps {
6
6
  }
7
7
  export declare function DropdownMenu({ children, className }: DropdownMenuProps): React.JSX.Element;
8
8
  export declare namespace DropdownMenu {
9
- var Button: ({ label, tooltip, icon, children, tooltipPosition, className, disabled, }: DropdownButtonProps) => React.JSX.Element;
9
+ var Button: ({ label, type, tooltip, icon, children, tooltipPosition, className, disabled, }: DropdownButtonProps) => React.JSX.Element;
10
10
  var Item: ({ label, href, disabled, key, onClick, }: DropdownItemProps) => React.JSX.Element;
11
11
  var Items: ({ origin, width, children, }: DropdownItemsProps) => React.JSX.Element;
12
12
  }
13
13
  export interface DropdownButtonProps {
14
14
  label?: string;
15
+ type?: "menu" | "select";
15
16
  tooltip?: string;
16
17
  tooltipPosition?: TooltipProps["position"];
17
18
  icon?: ComponentType;
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ declare const SvgChevronUpDown: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgChevronUpDown;
@@ -14,6 +14,7 @@ export { default as ChevronDown } from "./ChevronDown";
14
14
  export { default as ChevronLeft } from "./ChevronLeft";
15
15
  export { default as ChevronRight } from "./ChevronRight";
16
16
  export { default as ChevronUp } from "./ChevronUp";
17
+ export { default as ChevronUpDown } from "./ChevronUpDown";
17
18
  export { default as Clipboard } from "./Clipboard";
18
19
  export { default as ClipboardCheck } from "./ClipboardCheck";
19
20
  export { default as Clock } from "./Clock";
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from "react";
2
+ import * as React from "react";
3
+ declare const SvgChevronUpDown: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgChevronUpDown;
@@ -14,6 +14,7 @@ export { default as ChevronDown } from "./ChevronDown";
14
14
  export { default as ChevronLeft } from "./ChevronLeft";
15
15
  export { default as ChevronRight } from "./ChevronRight";
16
16
  export { default as ChevronUp } from "./ChevronUp";
17
+ export { default as ChevronUpDown } from "./ChevronUpDown";
17
18
  export { default as Clipboard } from "./Clipboard";
18
19
  export { default as ClipboardCheck } from "./ClipboardCheck";
19
20
  export { default as Clock } from "./Clock";