@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.
- package/dist/cjs/components/Button.d.ts +3 -2
- package/dist/cjs/components/DropdownMenu.d.ts +2 -1
- package/dist/cjs/icons/solid/ChevronUpDown.d.ts +4 -0
- package/dist/cjs/icons/solid/index.d.ts +1 -0
- package/dist/cjs/icons/stroke/ChevronUpDown.d.ts +4 -0
- package/dist/cjs/icons/stroke/index.d.ts +1 -0
- package/dist/cjs/index.js +210 -205
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/stories/Button.stories.d.ts +2 -0
- package/dist/esm/components/Button.d.ts +3 -2
- package/dist/esm/components/DropdownMenu.d.ts +2 -1
- package/dist/esm/icons/solid/ChevronUpDown.d.ts +4 -0
- package/dist/esm/icons/solid/index.d.ts +1 -0
- package/dist/esm/icons/stroke/ChevronUpDown.d.ts +4 -0
- package/dist/esm/icons/stroke/index.d.ts +1 -0
- package/dist/esm/index.js +210 -205
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/stories/Button.stories.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ declare const meta: {
|
|
|
8
8
|
export default meta;
|
|
9
9
|
type Story = StoryObj<typeof meta>;
|
|
10
10
|
export declare const ButtonExamples: () => React.JSX.Element;
|
|
11
|
+
export declare const ButtonMenuExamples: () => React.JSX.Element;
|
|
12
|
+
export declare const ButtonSelectExamples: () => React.JSX.Element;
|
|
11
13
|
export declare const Primary: Story;
|
|
12
14
|
export declare const PrimaryWarning: Story;
|
|
13
15
|
export declare const Secondary: Story;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { ComponentType, MouseEvent } from "react";
|
|
2
2
|
import { TooltipProps } from "./Tooltip";
|
|
3
3
|
export type ButtonProps = {
|
|
4
|
-
|
|
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;
|
|
@@ -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";
|
|
@@ -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";
|