@dust-tt/sparkle 0.2.90 → 0.2.91-pr2
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 +0 -2
- package/dist/cjs/components/AssistantPreview.d.ts +16 -24
- package/dist/cjs/index.js +70 -128
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/_index.d.ts +0 -2
- package/dist/esm/components/AssistantPreview.d.ts +16 -24
- package/dist/esm/index.js +71 -128
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/AssistantPreview2.d.ts +0 -25
- package/dist/cjs/stories/AssistantPreview2.stories.d.ts +0 -6
- package/dist/esm/components/AssistantPreview2.d.ts +0 -25
- package/dist/esm/stories/AssistantPreview2.stories.d.ts +0 -6
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { SyntheticEvent } from "react";
|
|
2
|
-
type AssistantPreviewVariant = "item" | "list" | "gallery";
|
|
3
|
-
interface BaseAssistantPreviewProps {
|
|
4
|
-
variant: AssistantPreviewVariant;
|
|
5
|
-
description: string;
|
|
6
|
-
title: string;
|
|
7
|
-
pictureUrl: string;
|
|
8
|
-
subtitle: string;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
}
|
|
11
|
-
type ItemVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
12
|
-
variant: "item";
|
|
13
|
-
actions: React.ReactNode;
|
|
14
|
-
};
|
|
15
|
-
type ListVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
16
|
-
variant: "list";
|
|
17
|
-
};
|
|
18
|
-
type GalleryVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
19
|
-
variant: "gallery";
|
|
20
|
-
renderActions?: (isHovered: boolean) => React.ReactNode;
|
|
21
|
-
onPlayClick?: (e: SyntheticEvent) => void;
|
|
22
|
-
};
|
|
23
|
-
type AssistantPreviewProps = ItemVariantAssistantPreviewProps | ListVariantAssistantPreviewProps | GalleryVariantAssistantPreviewProps;
|
|
24
|
-
export declare function AssistantPreview2(props: AssistantPreviewProps): React.JSX.Element;
|
|
25
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { SyntheticEvent } from "react";
|
|
2
|
-
type AssistantPreviewVariant = "item" | "list" | "gallery";
|
|
3
|
-
interface BaseAssistantPreviewProps {
|
|
4
|
-
variant: AssistantPreviewVariant;
|
|
5
|
-
description: string;
|
|
6
|
-
title: string;
|
|
7
|
-
pictureUrl: string;
|
|
8
|
-
subtitle: string;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
}
|
|
11
|
-
type ItemVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
12
|
-
variant: "item";
|
|
13
|
-
actions: React.ReactNode;
|
|
14
|
-
};
|
|
15
|
-
type ListVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
16
|
-
variant: "list";
|
|
17
|
-
};
|
|
18
|
-
type GalleryVariantAssistantPreviewProps = BaseAssistantPreviewProps & {
|
|
19
|
-
variant: "gallery";
|
|
20
|
-
renderActions?: (isHovered: boolean) => React.ReactNode;
|
|
21
|
-
onPlayClick?: (e: SyntheticEvent) => void;
|
|
22
|
-
};
|
|
23
|
-
type AssistantPreviewProps = ItemVariantAssistantPreviewProps | ListVariantAssistantPreviewProps | GalleryVariantAssistantPreviewProps;
|
|
24
|
-
export declare function AssistantPreview2(props: AssistantPreviewProps): React.JSX.Element;
|
|
25
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|