@dust-tt/sparkle 0.2.71 → 0.2.74
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 -0
- package/dist/cjs/components/AssistantPreview2.d.ts +13 -0
- package/dist/cjs/components/Chip.d.ts +3 -2
- package/dist/cjs/components/DropdownMenu.d.ts +3 -1
- package/dist/cjs/components/Notification.d.ts +9 -0
- package/dist/cjs/index.js +79 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/stories/AssistantPreview2.stories.d.ts +6 -0
- package/dist/cjs/stories/Notification.stories.d.ts +8 -0
- package/dist/esm/_index.d.ts +4 -0
- package/dist/esm/components/AssistantPreview2.d.ts +13 -0
- package/dist/esm/components/Chip.d.ts +3 -2
- package/dist/esm/components/DropdownMenu.d.ts +3 -1
- package/dist/esm/components/Notification.d.ts +9 -0
- package/dist/esm/index.js +78 -19
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/stories/AssistantPreview2.stories.d.ts +6 -0
- package/dist/esm/stories/Notification.stories.d.ts +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AssistantPreview2 } from "../index_with_tw_base";
|
|
4
|
+
declare const meta: Meta<typeof AssistantPreview2>;
|
|
5
|
+
export default meta;
|
|
6
|
+
export declare const AssistantPreviewExample: () => React.JSX.Element;
|
package/dist/esm/_index.d.ts
CHANGED
|
@@ -16,8 +16,12 @@ import { ContextItem } from "./components/ContextItem";
|
|
|
16
16
|
export { ContextItem };
|
|
17
17
|
import { AssistantPreview } from "./components/AssistantPreview";
|
|
18
18
|
export { AssistantPreview };
|
|
19
|
+
import { AssistantPreview2 } from "./components/AssistantPreview2";
|
|
20
|
+
export { AssistantPreview2 };
|
|
19
21
|
import { Banner } from "./components/Banner";
|
|
20
22
|
export { Banner };
|
|
23
|
+
import { Notification } from "./components/Notification";
|
|
24
|
+
export { Notification };
|
|
21
25
|
import { Chip } from "./components/Chip";
|
|
22
26
|
export { Chip };
|
|
23
27
|
import { Citation } from "./components/Citation";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type AssistantPreviewVariant = "item" | "list" | "gallery";
|
|
3
|
+
interface AssistantPreviewProps {
|
|
4
|
+
variant: AssistantPreviewVariant;
|
|
5
|
+
description: string;
|
|
6
|
+
title: string;
|
|
7
|
+
pictureUrl: string;
|
|
8
|
+
actions?: React.ReactNode;
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function AssistantPreview2({ variant, title, subtitle, pictureUrl, description, actions, onClick, }: AssistantPreviewProps): React.JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
1
|
+
import React, { ComponentType, ReactNode } from "react";
|
|
2
2
|
type ChipProps = {
|
|
3
3
|
size?: "xs" | "sm";
|
|
4
4
|
color?: "emerald" | "amber" | "slate" | "purple" | "warning" | "sky" | "pink" | "action" | "red";
|
|
@@ -6,8 +6,9 @@ type ChipProps = {
|
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
isBusy?: boolean;
|
|
9
|
+
icon?: ComponentType;
|
|
9
10
|
};
|
|
10
|
-
export declare function Chip({ size, color, label, children, className, isBusy, }: ChipProps): React.JSX.Element;
|
|
11
|
+
export declare function Chip({ size, color, label, children, className, isBusy, icon, }: ChipProps): React.JSX.Element;
|
|
11
12
|
export declare namespace Chip {
|
|
12
13
|
var List: ({ children, className, isWrapping }: ListChipProps) => React.JSX.Element;
|
|
13
14
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace DropdownMenu {
|
|
|
9
9
|
var Button: ({ label, type, size, tooltip, icon, children, tooltipPosition, className, disabled, onClick, }: DropdownButtonProps) => React.JSX.Element;
|
|
10
10
|
var Item: ({ variant, label, description, href, disabled, visual, icon, onClick, hasChildren, children, selected, }: DropdownItemProps) => React.JSX.Element;
|
|
11
11
|
var SectionHeader: ({ label }: DropdownSectionHeaderProps) => React.JSX.Element;
|
|
12
|
-
var Items: ({ origin, width, marginLeft, children, }: DropdownItemsProps) => React.JSX.Element;
|
|
12
|
+
var Items: ({ origin, width, marginLeft, children, topBar, bottomBar, }: DropdownItemsProps) => React.JSX.Element;
|
|
13
13
|
}
|
|
14
14
|
export interface DropdownButtonProps {
|
|
15
15
|
label?: string;
|
|
@@ -44,5 +44,7 @@ interface DropdownItemsProps {
|
|
|
44
44
|
width?: number;
|
|
45
45
|
marginLeft?: number;
|
|
46
46
|
children: React.ReactNode;
|
|
47
|
+
topBar?: React.ReactNode;
|
|
48
|
+
bottomBar?: React.ReactNode;
|
|
47
49
|
}
|
|
48
50
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface NotificationProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
description: string;
|
|
5
|
+
title: string;
|
|
6
|
+
type: "success" | "error";
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function Notification({ description, title, type, onClick, className, }: NotificationProps): React.JSX.Element;
|