@dust-tt/sparkle 0.1.43 → 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/_index.d.ts +6 -0
- package/dist/cjs/components/Avatar.d.ts +10 -0
- 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 +463 -215
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/logo/dust/LogoHorizontalColor.d.ts +4 -0
- package/dist/cjs/logo/dust/LogoHorizontalDark.d.ts +4 -0
- package/dist/cjs/logo/dust/LogoHorizontalWhite.d.ts +4 -0
- package/dist/cjs/logo/dust/LogoSquareColor.d.ts +4 -0
- package/dist/cjs/logo/dust/LogoSquareDark.d.ts +4 -0
- package/dist/cjs/logo/dust/LogoSquareWhite.d.ts +4 -0
- package/dist/cjs/logo/dust/index.d.ts +6 -0
- package/dist/cjs/logo/platforms/Ai21.d.ts +4 -0
- package/dist/cjs/logo/platforms/Claude.d.ts +4 -0
- package/dist/cjs/logo/platforms/Cohere.d.ts +4 -0
- package/dist/cjs/logo/platforms/Drive.d.ts +4 -0
- package/dist/cjs/logo/platforms/Github.d.ts +4 -0
- package/dist/cjs/logo/platforms/Gpt3.d.ts +4 -0
- package/dist/cjs/logo/platforms/Gpt4.d.ts +4 -0
- package/dist/cjs/logo/platforms/HuggingFace.d.ts +4 -0
- package/dist/cjs/logo/platforms/Microsoft.d.ts +4 -0
- package/dist/cjs/logo/platforms/Notion.d.ts +4 -0
- package/dist/cjs/logo/platforms/Replicate.d.ts +4 -0
- package/dist/cjs/logo/platforms/Slack.d.ts +4 -0
- package/dist/cjs/logo/platforms/index.d.ts +12 -0
- package/dist/cjs/stories/Avatar.stories.d.ts +15 -0
- package/dist/cjs/stories/Button.stories.d.ts +5 -1
- package/dist/cjs/stories/Logo.stories.d.ts +4 -10
- package/dist/cjs/stories/PlatformIconSet.stories.d.ts +6 -0
- package/dist/esm/_index.d.ts +6 -0
- package/dist/esm/components/Avatar.d.ts +10 -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 +445 -216
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logo/dust/LogoHorizontalColor.d.ts +4 -0
- package/dist/esm/logo/dust/LogoHorizontalDark.d.ts +4 -0
- package/dist/esm/logo/dust/LogoHorizontalWhite.d.ts +4 -0
- package/dist/esm/logo/dust/LogoSquareColor.d.ts +4 -0
- package/dist/esm/logo/dust/LogoSquareDark.d.ts +4 -0
- package/dist/esm/logo/dust/LogoSquareWhite.d.ts +4 -0
- package/dist/esm/logo/dust/index.d.ts +6 -0
- package/dist/esm/logo/platforms/Ai21.d.ts +4 -0
- package/dist/esm/logo/platforms/Claude.d.ts +4 -0
- package/dist/esm/logo/platforms/Cohere.d.ts +4 -0
- package/dist/esm/logo/platforms/Drive.d.ts +4 -0
- package/dist/esm/logo/platforms/Github.d.ts +4 -0
- package/dist/esm/logo/platforms/Gpt3.d.ts +4 -0
- package/dist/esm/logo/platforms/Gpt4.d.ts +4 -0
- package/dist/esm/logo/platforms/HuggingFace.d.ts +4 -0
- package/dist/esm/logo/platforms/Microsoft.d.ts +4 -0
- package/dist/esm/logo/platforms/Notion.d.ts +4 -0
- package/dist/esm/logo/platforms/Replicate.d.ts +4 -0
- package/dist/esm/logo/platforms/Slack.d.ts +4 -0
- package/dist/esm/logo/platforms/index.d.ts +12 -0
- package/dist/esm/stories/Avatar.stories.d.ts +15 -0
- package/dist/esm/stories/Button.stories.d.ts +5 -1
- package/dist/esm/stories/Logo.stories.d.ts +4 -10
- package/dist/esm/stories/PlatformIconSet.stories.d.ts +6 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as LogoHorizontalColor } from "./LogoHorizontalColor";
|
|
2
|
+
export { default as LogoHorizontalDark } from "./LogoHorizontalDark";
|
|
3
|
+
export { default as LogoHorizontalWhite } from "./LogoHorizontalWhite";
|
|
4
|
+
export { default as LogoSquareColor } from "./LogoSquareColor";
|
|
5
|
+
export { default as LogoSquareDark } from "./LogoSquareDark";
|
|
6
|
+
export { default as LogoSquareWhite } from "./LogoSquareWhite";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as Ai21 } from "./Ai21";
|
|
2
|
+
export { default as Claude } from "./Claude";
|
|
3
|
+
export { default as Cohere } from "./Cohere";
|
|
4
|
+
export { default as Drive } from "./Drive";
|
|
5
|
+
export { default as Github } from "./Github";
|
|
6
|
+
export { default as Gpt3 } from "./Gpt3";
|
|
7
|
+
export { default as Gpt4 } from "./Gpt4";
|
|
8
|
+
export { default as HuggingFace } from "./HuggingFace";
|
|
9
|
+
export { default as Microsoft } from "./Microsoft";
|
|
10
|
+
export { default as Notion } from "./Notion";
|
|
11
|
+
export { default as Replicate } from "./Replicate";
|
|
12
|
+
export { default as Slack } from "./Slack";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Avatar } from "../index_with_tw_base";
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof Avatar;
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const AvatarExample: () => React.JSX.Element;
|
|
11
|
+
export declare const AvatarBusyExample: () => React.JSX.Element;
|
|
12
|
+
export declare const AvatarClickableExample: () => React.JSX.Element;
|
|
13
|
+
export declare const AvatarWithImage: Story;
|
|
14
|
+
export declare const AvatarWithName: Story;
|
|
15
|
+
export declare const AvatarEmpty: Story;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { StoryObj } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { Button } from "../index_with_tw_base";
|
|
3
4
|
declare const meta: {
|
|
4
5
|
title: string;
|
|
@@ -6,9 +7,12 @@ declare const meta: {
|
|
|
6
7
|
};
|
|
7
8
|
export default meta;
|
|
8
9
|
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const ButtonExamples: () => React.JSX.Element;
|
|
11
|
+
export declare const ButtonMenuExamples: () => React.JSX.Element;
|
|
12
|
+
export declare const ButtonSelectExamples: () => React.JSX.Element;
|
|
9
13
|
export declare const Primary: Story;
|
|
10
|
-
export declare const IconOnlyPlusTooltip: Story;
|
|
11
14
|
export declare const PrimaryWarning: Story;
|
|
12
15
|
export declare const Secondary: Story;
|
|
13
16
|
export declare const SecondaryWarning: Story;
|
|
14
17
|
export declare const Tertiary: Story;
|
|
18
|
+
export declare const IconOnlyPlusTooltip: Story;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
declare const meta: {
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
4
3
|
title: string;
|
|
5
|
-
component: typeof Logo;
|
|
6
4
|
};
|
|
7
|
-
export default
|
|
8
|
-
|
|
9
|
-
export declare const LogoFullColor: Story;
|
|
10
|
-
export declare const LogoColoredGrey: Story;
|
|
11
|
-
export declare const LogoSquareFullColor: Story;
|
|
12
|
-
export declare const LogoSquareColoredGrey: Story;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const DustLogoSet: () => React.JSX.Element;
|
package/dist/esm/_index.d.ts
CHANGED
|
@@ -26,8 +26,14 @@ import { IconToggleButton } from "./components/IconToggleButton";
|
|
|
26
26
|
export { IconToggleButton };
|
|
27
27
|
import { Tooltip } from "./components/Tooltip";
|
|
28
28
|
export { Tooltip };
|
|
29
|
+
import { Avatar } from "./components/Avatar";
|
|
30
|
+
export { Avatar };
|
|
29
31
|
import Spinner from "./components/Spinner";
|
|
30
32
|
export { Spinner };
|
|
33
|
+
import { LogoHorizontalColor as LogoHorizontalColorLogo, LogoHorizontalDark as LogoHorizontalDarkLogo, LogoHorizontalWhite as LogoHorizontalWhiteLogo, LogoSquareColor as LogoSquareColorLogo, LogoSquareDark as LogoSquareDarkLogo, LogoSquareWhite as LogoSquareWhiteLogo } from "./logo/dust";
|
|
34
|
+
export { LogoHorizontalColorLogo, LogoHorizontalDarkLogo, LogoHorizontalWhiteLogo, LogoSquareColorLogo, LogoSquareDarkLogo, LogoSquareWhiteLogo, };
|
|
35
|
+
import { Ai21 as Ai21Logo, Claude as ClaudeLogo, Cohere as CohereLogo, Drive as DriveLogo, Github as GithubLogo, Gpt3 as Gpt3Logo, Gpt4 as Gpt4Logo, HuggingFace as HuggingFaceLogo, Microsoft as MicrosoftLogo, Notion as NotionLogo, Replicate as ReplicateLogo, Slack as SlackLogo } from "./logo/platforms";
|
|
36
|
+
export { Ai21Logo, ClaudeLogo, CohereLogo, DriveLogo, GithubLogo, Gpt3Logo, Gpt4Logo, HuggingFaceLogo, MicrosoftLogo, NotionLogo, ReplicateLogo, SlackLogo, };
|
|
31
37
|
import { ArrowDownCircle as ArrowDownCircleIcon, ArrowDownOnSquare as ArrowDownOnSquareIcon, ArrowPath as ArrowPathIcon, ArrowUpOnSquare as ArrowUpOnSquareIcon, Attachment as AttachmentIcon, Backspace as BackspaceIcon, Bookmark as BookmarkIcon, ChatBubbleBottomCenterPlus as ChatBubbleBottomCenterPlusIcon, ChatBubbleBottomCenterText as ChatBubbleBottomCenterTextIcon, ChatBubbleLeftRight as ChatBubbleLeftRightIcon, Check as CheckIcon, CheckCircle as CheckCircleIcon, ChevronDown as ChevronDownIcon, ChevronLeft as ChevronLeftIcon, ChevronRight as ChevronRightIcon, ChevronUp as ChevronUpIcon, Clipboard as ClipboardIcon, ClipboardCheck as ClipboardCheckIcon, Clock as ClockIcon, CloudArrowDown as CloudArrowDownIcon, Cog6Tooth as Cog6ToothIcon, CommandLine as CommandLineIcon, Cube as CubeIcon, DocumentDuplicate as DocumentDuplicateIcon, DocumentPlus as DocumentPlusIcon, DocumentText as DocumentTextIcon, Equalizer as EqualizerIcon, ExclamationCircle as ExclamationCircleIcon, Eye as EyeIcon, EyeSlash as EyeSlashIcon, FolderOpen as FolderOpenIcon, GlobeAlt as GlobeAltIcon, HandThumbDown as HandThumbDownIcon, HandThumbUp as HandThumbUpIcon, InformationCircle as InformationCircleIcon, Key as KeyIcon, Lightbulb as LightbulbIcon, Link as LinkIcon, MagnifyingGlass as MagnifyingGlassIcon, Menu as MenuIcon, PaperAirplane as PaperAirplaneIcon, PencilSquare as PencilSquareIcon, Planet as PlanetIcon, Plus as PlusIcon, PlusCircle as PlusCircleIcon, QuestionMarkCircle as QuestionMarkCircleIcon, Robot as RobotIcon, Server as ServerIcon, Sparkles as SparklesIcon, Square3Stack3D as Square3Stack3DIcon, TestTube as TestTubeIcon, Trash as TrashIcon, User as UserIcon, UserGroup as UserGroupIcon, Wrench as WrenchIcon, XCircle as XCircleIcon, XMark as XMarkIcon } from "./icons/solid";
|
|
32
38
|
export { ArrowDownCircleIcon, ArrowDownOnSquareIcon, ArrowPathIcon, ArrowUpOnSquareIcon, AttachmentIcon, BackspaceIcon, BookmarkIcon, ChatBubbleBottomCenterPlusIcon, ChatBubbleBottomCenterTextIcon, ChatBubbleLeftRightIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClipboardCheckIcon, ClipboardIcon, ClockIcon, CloudArrowDownIcon, Cog6ToothIcon, CommandLineIcon, CubeIcon, DocumentDuplicateIcon, DocumentPlusIcon, DocumentTextIcon, EqualizerIcon, ExclamationCircleIcon, EyeIcon, EyeSlashIcon, FolderOpenIcon, GlobeAltIcon, HandThumbDownIcon, HandThumbUpIcon, InformationCircleIcon, KeyIcon, LightbulbIcon, LinkIcon, MagnifyingGlassIcon, MenuIcon, PaperAirplaneIcon, PencilSquareIcon, PlanetIcon, PlusCircleIcon, PlusIcon, QuestionMarkCircleIcon, RobotIcon, ServerIcon, SparklesIcon, Square3Stack3DIcon, TestTubeIcon, TrashIcon, UserGroupIcon, UserIcon, WrenchIcon, XCircleIcon, XMarkIcon, };
|
|
33
39
|
import { ArrowDownCircle as ArrowDownCircleStrokeIcon, ArrowDownOnSquare as ArrowDownOnSquareStrokeIcon, ArrowPath as ArrowPathStrokeIcon, ArrowUpOnSquare as ArrowUpOnSquareStrokeIcon, Attachment as AttachmentStrokeIcon, Backspace as BackspaceStrokeIcon, Bookmark as BookmarkStrokeIcon, ChatBubbleBottomCenterPlus as ChatBubbleBottomCenterPlusStrokeIcon, ChatBubbleBottomCenterText as ChatBubbleBottomCenterTextStrokeIcon, ChatBubbleLeftRight as ChatBubbleLeftRightStrokeIcon, Check as CheckStrokeIcon, CheckCircle as CheckCircleStrokeIcon, ChevronDown as ChevronDownStrokeIcon, ChevronLeft as ChevronLeftStrokeIcon, ChevronRight as ChevronRightStrokeIcon, ChevronUp as ChevronUpStrokeIcon, Clipboard as ClipboardStrokeIcon, ClipboardCheck as ClipboardCheckStrokeIcon, Clock as ClockStrokeIcon, CloudArrowDown as CloudArrowDownStrokeIcon, Cog6Tooth as Cog6ToothStrokeIcon, CommandLine as CommandLineStrokeIcon, Cube as CubeStrokeIcon, DocumentDuplicate as DocumentDuplicateStrokeIcon, DocumentPlus as DocumentPlusStrokeIcon, DocumentText as DocumentTextStrokeIcon, Equalizer as EqualizerStrokeIcon, ExclamationCircle as ExclamationCircleStrokeIcon, Eye as EyeStrokeIcon, EyeSlash as EyeSlashStrokeIcon, FolderOpen as FolderOpenStrokeIcon, GlobeAlt as GlobeAltStrokeIcon, HandThumbDown as HandThumbDownStrokeIcon, HandThumbUp as HandThumbUpStrokeIcon, InformationCircle as InformationCircleStrokeIcon, Key as KeyStrokeIcon, Lightbulb as LightbulbStrokeIcon, Link as LinkStrokeIcon, MagnifyingGlass as MagnifyingGlassStrokeIcon, Menu as MenuStrokeIcon, PaperAirplane as PaperAirplaneStrokeIcon, PencilSquare as PencilSquareStrokeIcon, Planet as PlanetStrokeIcon, Plus as PlusStrokeIcon, PlusCircle as PlusCircleStrokeIcon, QuestionMarkCircle as QuestionMarkCircleStrokeIcon, Robot as RobotStrokeIcon, Server as ServerStrokeIcon, Sparkles as SparklesStrokeIcon, Square3Stack3D as Square3Stack3DStrokeIcon, TestTube as TestTubeStrokeIcon, Trash as TrashStrokeIcon, User as UserStrokeIcon, UserGroup as UserGroupStrokeIcon, Wrench as WrenchStrokeIcon, XCircle as XCircleStrokeIcon, XMark as XMarkStrokeIcon } from "./icons/stroke";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type AvatarProps = {
|
|
3
|
+
size: "xs" | "sm" | "md" | "lg" | "full";
|
|
4
|
+
name?: string;
|
|
5
|
+
visual?: string | React.ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
busy?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function Avatar({ size, name, visual, onClick, busy, }: AvatarProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -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";
|