@dust-tt/sparkle 0.2.28 → 0.2.29-pr
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 +4 -2
- package/dist/cjs/components/Button.d.ts +1 -1
- package/dist/cjs/components/Popup.d.ts +11 -0
- package/dist/cjs/components/PriceTable.d.ts +8 -4
- package/dist/cjs/index.js +87 -26
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/logo/platforms/Anthropic.d.ts +4 -0
- package/dist/cjs/logo/platforms/GithubWhite.d.ts +4 -0
- package/dist/cjs/logo/platforms/Mistral.d.ts +4 -0
- package/dist/cjs/logo/platforms/Openai.d.ts +4 -0
- package/dist/cjs/logo/platforms/index.d.ts +4 -0
- package/dist/cjs/stories/Popup.stories.d.ts +8 -0
- package/dist/cjs/stories/PriceTable.stories.d.ts +2 -1
- package/dist/esm/_index.d.ts +4 -2
- package/dist/esm/components/Button.d.ts +1 -1
- package/dist/esm/components/Popup.d.ts +11 -0
- package/dist/esm/components/PriceTable.d.ts +8 -4
- package/dist/esm/index.js +83 -27
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logo/platforms/Anthropic.d.ts +4 -0
- package/dist/esm/logo/platforms/GithubWhite.d.ts +4 -0
- package/dist/esm/logo/platforms/Mistral.d.ts +4 -0
- package/dist/esm/logo/platforms/Openai.d.ts +4 -0
- package/dist/esm/logo/platforms/index.d.ts +4 -0
- package/dist/esm/stories/Popup.stories.d.ts +8 -0
- package/dist/esm/stories/PriceTable.stories.d.ts +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/cjs/_index.d.ts
CHANGED
|
@@ -50,14 +50,16 @@ import { Searchbar } from "./components/Searchbar";
|
|
|
50
50
|
export { Searchbar };
|
|
51
51
|
import { RadioButton } from "./components/RadioButton";
|
|
52
52
|
export { RadioButton };
|
|
53
|
+
import { Popup } from "./components/Popup";
|
|
54
|
+
export { Popup };
|
|
53
55
|
import { SectionHeader } from "./components/SectionHeader";
|
|
54
56
|
export { SectionHeader };
|
|
55
57
|
import { PageHeader } from "./components/PageHeader";
|
|
56
58
|
export { PageHeader };
|
|
57
59
|
import { LogoHorizontalColor as LogoHorizontalColorLogo, LogoHorizontalDark as LogoHorizontalDarkLogo, LogoHorizontalWhite as LogoHorizontalWhiteLogo, LogoSquareColor as LogoSquareColorLogo, LogoSquareDark as LogoSquareDarkLogo, LogoSquareWhite as LogoSquareWhiteLogo } from "./logo/dust";
|
|
58
60
|
export { LogoHorizontalColorLogo, LogoHorizontalDarkLogo, LogoHorizontalWhiteLogo, LogoSquareColorLogo, LogoSquareDarkLogo, LogoSquareWhiteLogo, };
|
|
59
|
-
import { Ai21 as Ai21Logo, Claude as ClaudeLogo, Cohere as CohereLogo, Drive as DriveLogo, Github as GithubLogo, Google as GoogleLogo, Gpt3 as Gpt3Logo, Gpt4 as Gpt4Logo, HuggingFace as HuggingFaceLogo, Microsoft as MicrosoftLogo, Notion as NotionLogo, Replicate as ReplicateLogo, Slack as SlackLogo } from "./logo/platforms";
|
|
60
|
-
export { Ai21Logo, ClaudeLogo, CohereLogo, DriveLogo, GithubLogo, GoogleLogo, Gpt3Logo, Gpt4Logo, HuggingFaceLogo, MicrosoftLogo, NotionLogo, ReplicateLogo, SlackLogo, };
|
|
61
|
+
import { Ai21 as Ai21Logo, Anthropic as AnthropicLogo, Claude as ClaudeLogo, Cohere as CohereLogo, Drive as DriveLogo, Github as GithubLogo, GithubWhite as GithubWhiteLogo, Google as GoogleLogo, Gpt3 as Gpt3Logo, Gpt4 as Gpt4Logo, HuggingFace as HuggingFaceLogo, Microsoft as MicrosoftLogo, Mistral as MistralLogo, Notion as NotionLogo, Openai as OpenaiLogo, Replicate as ReplicateLogo, Slack as SlackLogo } from "./logo/platforms";
|
|
62
|
+
export { Ai21Logo, AnthropicLogo, ClaudeLogo, CohereLogo, DriveLogo, GithubLogo, GithubWhiteLogo, GoogleLogo, Gpt3Logo, Gpt4Logo, HuggingFaceLogo, MicrosoftLogo, MistralLogo, NotionLogo, OpenaiLogo, ReplicateLogo, SlackLogo, };
|
|
61
63
|
import { ArrowDownCircle as ArrowDownCircleIcon, ArrowDownOnSquare as ArrowDownOnSquareIcon, ArrowPath as ArrowPathIcon, ArrowRight as ArrowRightIcon, ArrowUpOnSquare as ArrowUpOnSquareIcon, Attachment as AttachmentIcon, Backspace as BackspaceIcon, Bookmark as BookmarkIcon, Braces as BracesIcon, Card as CardIcon, 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, ChevronUpDown as ChevronUpDownIcon, Clipboard as ClipboardIcon, ClipboardCheck as ClipboardCheckIcon, Clock as ClockIcon, CloudArrowDown as CloudArrowDownIcon, CloudArrowLeftRight as CloudArrowLeftRightIcon, CloudX as CloudXIcon, Cog6Tooth as Cog6ToothIcon, CommandLine as CommandLineIcon, Cube as CubeIcon, Dash as DashIcon, DocumentDuplicate as DocumentDuplicateIcon, DocumentPile as DocumentPileIcon, DocumentPlus as DocumentPlusIcon, DocumentText as DocumentTextIcon, Equalizer as EqualizerIcon, ExclamationCircle as ExclamationCircleIcon, ExternalLink as ExternalLinkIcon, Eye as EyeIcon, EyeSlash as EyeSlashIcon, Flag as FlagIcon, FolderOpen as FolderOpenIcon, Fullscreen as FullscreenIcon, GlobeAlt as GlobeAltIcon, HandThumbDown as HandThumbDownIcon, HandThumbUp as HandThumbUpIcon, Image as ImageIcon, InformationCircle as InformationCircleIcon, Key as KeyIcon, Lightbulb as LightbulbIcon, Link as LinkIcon, ListCheck as ListCheckIcon, Lock as LockIcon, Login as LoginIcon, Logout as LogoutIcon, MagnifyingGlass as MagnifyingGlassIcon, Menu as MenuIcon, More as MoreIcon, MovingMail as MovingMailIcon, PaperAirplane as PaperAirplaneIcon, Pause as PauseIcon, PencilSquare as PencilSquareIcon, Planet as PlanetIcon, Play as PlayIcon, Plus as PlusIcon, PlusCircle as PlusCircleIcon, QuestionMarkCircle as QuestionMarkCircleIcon, Reaction as ReactionIcon, Robot as RobotIcon, Rocket as RocketIcon, Server as ServerIcon, ShakeHands as ShakeHandsIcon, Shapes as ShapesIcon, Sparkles as SparklesIcon, Square3Stack3D as Square3Stack3DIcon, Stop as StopIcon, TestTube as TestTubeIcon, Trash as TrashIcon, User as UserIcon, UserArrow as UserArrowIcon, UserGroup as UserGroupIcon, UserPlus as UserPlusIcon, Wrench as WrenchIcon, XCircle as XCircleIcon, XMark as XMarkIcon } from "./icons/solid";
|
|
62
64
|
export { ArrowDownCircleIcon, ArrowDownOnSquareIcon, ArrowPathIcon, ArrowRightIcon, ArrowUpOnSquareIcon, AttachmentIcon, BackspaceIcon, BookmarkIcon, BracesIcon, CardIcon, ChatBubbleBottomCenterPlusIcon, ChatBubbleBottomCenterTextIcon, ChatBubbleLeftRightIcon, CheckCircleIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpDownIcon, ChevronUpIcon, ClipboardCheckIcon, ClipboardIcon, ClockIcon, CloudArrowDownIcon, CloudArrowLeftRightIcon, CloudXIcon, Cog6ToothIcon, CommandLineIcon, CubeIcon, DashIcon, DocumentDuplicateIcon, DocumentPileIcon, DocumentPlusIcon, DocumentTextIcon, EqualizerIcon, ExclamationCircleIcon, ExternalLinkIcon, EyeIcon, EyeSlashIcon, FlagIcon, FolderOpenIcon, FullscreenIcon, GlobeAltIcon, HandThumbDownIcon, HandThumbUpIcon, ImageIcon, InformationCircleIcon, KeyIcon, LightbulbIcon, LinkIcon, ListCheckIcon, LockIcon, LoginIcon, LogoutIcon, MagnifyingGlassIcon, MenuIcon, MoreIcon, MovingMailIcon, PaperAirplaneIcon, PauseIcon, PencilSquareIcon, PlanetIcon, PlayIcon, PlusCircleIcon, PlusIcon, QuestionMarkCircleIcon, ReactionIcon, RobotIcon, RocketIcon, ServerIcon, ShakeHandsIcon, ShapesIcon, SparklesIcon, Square3Stack3DIcon, StopIcon, TestTubeIcon, TrashIcon, UserArrowIcon, UserGroupIcon, UserIcon, UserPlusIcon, WrenchIcon, XCircleIcon, XMarkIcon, };
|
|
63
65
|
import { ArrowDownCircle as ArrowDownCircleStrokeIcon, ArrowDownOnSquare as ArrowDownOnSquareStrokeIcon, ArrowPath as ArrowPathStrokeIcon, ArrowRight as ArrowRightStrokeIcon, ArrowUpOnSquare as ArrowUpOnSquareStrokeIcon, Attachment as AttachmentStrokeIcon, Backspace as BackspaceStrokeIcon, Bookmark as BookmarkStrokeIcon, Braces as BracesStrokeIcon, Card as CardStrokeIcon, 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, ChevronUpDown as ChevronUpDownStrokeIcon, Clipboard as ClipboardStrokeIcon, ClipboardCheck as ClipboardCheckStrokeIcon, Clock as ClockStrokeIcon, CloudArrowDown as CloudArrowDownStrokeIcon, CloudArrowLeftRight as CloudArrowLeftRightStrokeIcon, CloudX as CloudXStrokeIcon, Cog6Tooth as Cog6ToothStrokeIcon, CommandLine as CommandLineStrokeIcon, Cube as CubeStrokeIcon, Dash as DashStrokeIcon, DocumentDuplicate as DocumentDuplicateStrokeIcon, DocumentPile as DocumentPileStrokeIcon, DocumentPlus as DocumentPlusStrokeIcon, DocumentText as DocumentTextStrokeIcon, Equalizer as EqualizerStrokeIcon, ExclamationCircle as ExclamationCircleStrokeIcon, ExternalLink as ExternalLinkStrokeIcon, Eye as EyeStrokeIcon, EyeSlash as EyeSlashStrokeIcon, Flag as FlagStrokeIcon, FolderOpen as FolderOpenStrokeIcon, Fullscreen as FullscreenStrokeIcon, GlobeAlt as GlobeAltStrokeIcon, HandThumbDown as HandThumbDownStrokeIcon, HandThumbUp as HandThumbUpStrokeIcon, Image as ImageStrokeIcon, InformationCircle as InformationCircleStrokeIcon, Key as KeyStrokeIcon, Lightbulb as LightbulbStrokeIcon, Link as LinkStrokeIcon, ListCheck as ListCheckStrokeIcon, Lock as LockStrokeIcon, Login as LoginStrokeIcon, Logout as LogoutStrokeIcon, MagnifyingGlass as MagnifyingGlassStrokeIcon, Menu as MenuStrokeIcon, More as MoreStrokeIcon, MovingMail as MovingMailStrokeIcon, PaperAirplane as PaperAirplaneStrokeIcon, Pause as PauseStrokeIcon, PencilSquare as PencilSquareStrokeIcon, Planet as PlanetStrokeIcon, Play as PlayStrokeIcon, Plus as PlusStrokeIcon, PlusCircle as PlusCircleStrokeIcon, QuestionMarkCircle as QuestionMarkCircleStrokeIcon, Reaction as ReactionStrokeIcon, Robot as RobotStrokeIcon, Rocket as RocketStrokeIcon, Server as ServerStrokeIcon, ShakeHands as ShakeHandsStrokeIcon, Shapes as ShapesStrokeIcon, Sparkles as SparklesStrokeIcon, Square3Stack3D as Square3Stack3DStrokeIcon, Stop as StopStrokeIcon, TestTube as TestTubeStrokeIcon, Trash as TrashStrokeIcon, User as UserStrokeIcon, UserArrow as UserArrowStrokeIcon, UserGroup as UserGroupStrokeIcon, UserPlus as UserPlusStrokeIcon, Wrench as WrenchStrokeIcon, XCircle as XCircleStrokeIcon, XMark as XMarkStrokeIcon } from "./icons/stroke";
|
|
@@ -3,7 +3,7 @@ import { TooltipProps } from "./Tooltip";
|
|
|
3
3
|
export type ButtonProps = {
|
|
4
4
|
variant?: "primary" | "primaryWarning" | "secondary" | "secondaryWarning" | "tertiary" | "avatar";
|
|
5
5
|
type?: "button" | "menu" | "select";
|
|
6
|
-
size?: "xs" | "sm" | "md";
|
|
6
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
7
7
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
hasMagnifying?: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type PopupProps = {
|
|
3
|
+
show: boolean;
|
|
4
|
+
chipLabel: string;
|
|
5
|
+
description: string;
|
|
6
|
+
buttonLabel: string;
|
|
7
|
+
buttonClick: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function Popup({ show, chipLabel, description, buttonLabel, buttonClick, className, }: PopupProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -3,23 +3,27 @@ interface PriceTableProps {
|
|
|
3
3
|
title: string;
|
|
4
4
|
price: string;
|
|
5
5
|
priceLabel?: string;
|
|
6
|
-
color?: "pink" | "sky" | "emerald";
|
|
6
|
+
color?: "pink" | "sky" | "emerald" | "amber" | "blue";
|
|
7
|
+
size?: "xs" | "sm";
|
|
7
8
|
className?: string;
|
|
8
9
|
children: ReactNode;
|
|
10
|
+
magnified?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export declare function PriceTable({ title, price, color, priceLabel, className, children, }: PriceTableProps): React.JSX.Element;
|
|
12
|
+
export declare function PriceTable({ title, price, color, size, priceLabel, className, magnified, children, }: PriceTableProps): React.JSX.Element;
|
|
11
13
|
export declare namespace PriceTable {
|
|
12
|
-
var Item: ({ label, variant, className, }: PriceTableItemProps) => React.JSX.Element;
|
|
13
|
-
var ActionContainer: ({ children, }: PriceTableActionContainerProps) => React.JSX.Element;
|
|
14
|
+
var Item: ({ label, variant, size, className, }: PriceTableItemProps) => React.JSX.Element;
|
|
15
|
+
var ActionContainer: ({ children, size, }: PriceTableActionContainerProps) => React.JSX.Element;
|
|
14
16
|
var Container: ({ children }: PriceTableContainerProps) => React.JSX.Element;
|
|
15
17
|
}
|
|
16
18
|
interface PriceTableItemProps {
|
|
17
19
|
label: string;
|
|
20
|
+
size?: "xs" | "sm";
|
|
18
21
|
variant?: "check" | "dash" | "xmark";
|
|
19
22
|
className?: string;
|
|
20
23
|
}
|
|
21
24
|
interface PriceTableActionContainerProps {
|
|
22
25
|
children: ReactNode;
|
|
26
|
+
size?: "xs" | "sm";
|
|
23
27
|
}
|
|
24
28
|
interface PriceTableContainerProps {
|
|
25
29
|
children: ReactNode;
|