@gram-ai/elements 1.8.1 → 1.8.3
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/README.md +2 -2
- package/dist/components/assistant-ui/tooltip-icon-button.d.ts +1 -0
- package/dist/components/ui/button.d.ts +1 -5
- package/dist/components/ui/buttonVariants.d.ts +4 -0
- package/dist/contexts/ElementsProvider.d.ts +1 -2
- package/dist/contexts/elementsContextType.d.ts +2 -0
- package/dist/elements.cjs +32 -36
- package/dist/elements.js +7002 -18722
- package/dist/hooks/useElements.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -13,10 +13,10 @@ This package provides two separate exports with different dependencies:
|
|
|
13
13
|
|
|
14
14
|
### Frontend Setup
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
First ensure that you have installed the required peer dependencies:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
pnpm add react react-dom @assistant-ui/react @assistant-ui/react-markdown motion remark-gfm zustand
|
|
19
|
+
pnpm add react react-dom @assistant-ui/react @assistant-ui/react-markdown motion remark-gfm zustand d3
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
Then install Elements:
|
|
@@ -3,5 +3,6 @@ import { Button } from '../ui/button';
|
|
|
3
3
|
export type TooltipIconButtonProps = ComponentPropsWithRef<typeof Button> & {
|
|
4
4
|
tooltip: string;
|
|
5
5
|
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
6
|
+
align?: 'start' | 'center' | 'end';
|
|
6
7
|
};
|
|
7
8
|
export declare const TooltipIconButton: import('react').ForwardRefExoticComponent<Omit<TooltipIconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
-
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
3
|
declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
8
4
|
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
9
5
|
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
10
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
11
7
|
asChild?: boolean;
|
|
12
8
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
export { Button
|
|
9
|
+
export { Button };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const buttonVariants: (props?: ({
|
|
2
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
3
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementsProviderProps } from '../types';
|
|
2
2
|
export declare const ElementsProvider: ({ children, config, }: ElementsProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare const useElements: () => ElementsContextType;
|