@revathi_kanakapathy/storybook 0.3.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 +378 -0
- package/dist/components/charts/AreaChart/AreaChart.d.ts +7 -0
- package/dist/components/charts/BarChart/BarChart.d.ts +19 -0
- package/dist/components/charts/LineChart/LineChart.d.ts +20 -0
- package/dist/components/charts/PieChart/PieChart.d.ts +14 -0
- package/dist/components/charts/RadarChart/RadarChart.d.ts +7 -0
- package/dist/components/charts/ScatterChart/ScatterChart.d.ts +7 -0
- package/dist/components/charts/index.d.ts +6 -0
- package/dist/components/ui/Accordion/Accordion.d.ts +27 -0
- package/dist/components/ui/Alert/Alert.d.ts +29 -0
- package/dist/components/ui/Badge/Badge.d.ts +5 -0
- package/dist/components/ui/Breadcrumb/Breadcrumb.d.ts +48 -0
- package/dist/components/ui/Button/Button.d.ts +23 -0
- package/dist/components/ui/Card/Card.d.ts +7 -0
- package/dist/components/ui/Checkbox/Checkbox.d.ts +30 -0
- package/dist/components/ui/Input/Input.d.ts +2 -0
- package/dist/components/ui/Label/Label.d.ts +2 -0
- package/dist/components/ui/Textarea/Textarea.d.ts +2 -0
- package/dist/components/ui/Toast/Toast.d.ts +42 -0
- package/dist/components/ui/index.d.ts +6 -0
- package/dist/components.es.js +3265 -0
- package/dist/components.umd.js +1 -0
- package/dist/fonts/recoleta/Recoleta-Black.eot +0 -0
- package/dist/fonts/recoleta/Recoleta-Black.ttf +0 -0
- package/dist/fonts/recoleta/Recoleta-Black.woff +0 -0
- package/dist/fonts/recoleta/Recoleta-Black.woff2 +0 -0
- package/dist/fonts/recoleta/Recoleta-Bold.eot +0 -0
- package/dist/fonts/recoleta/Recoleta-Bold.ttf +0 -0
- package/dist/fonts/recoleta/Recoleta-Bold.woff +0 -0
- package/dist/fonts/recoleta/Recoleta-Bold.woff2 +0 -0
- package/dist/fonts/recoleta/Recoleta-Light.eot +0 -0
- package/dist/fonts/recoleta/Recoleta-Light.ttf +0 -0
- package/dist/fonts/recoleta/Recoleta-Light.woff +0 -0
- package/dist/fonts/recoleta/Recoleta-Light.woff2 +0 -0
- package/dist/fonts/recoleta/Recoleta-Medium.eot +0 -0
- package/dist/fonts/recoleta/Recoleta-Medium.ttf +0 -0
- package/dist/fonts/recoleta/Recoleta-Medium.woff +0 -0
- package/dist/fonts/recoleta/Recoleta-Medium.woff2 +0 -0
- package/dist/fonts/recoleta/Recoleta-Regular.eot +0 -0
- package/dist/fonts/recoleta/Recoleta-Regular.ttf +0 -0
- package/dist/fonts/recoleta/Recoleta-Regular.woff +0 -0
- package/dist/fonts/recoleta/Recoleta-Regular.woff2 +0 -0
- package/dist/fonts/recoleta/Recoleta-SemiBold.eot +0 -0
- package/dist/fonts/recoleta/Recoleta-SemiBold.ttf +0 -0
- package/dist/fonts/recoleta/Recoleta-SemiBold.woff +0 -0
- package/dist/fonts/recoleta/Recoleta-SemiBold.woff2 +0 -0
- package/dist/fonts/recoleta/Recoleta-Thin.eot +0 -0
- package/dist/fonts/recoleta/Recoleta-Thin.ttf +0 -0
- package/dist/fonts/recoleta/Recoleta-Thin.woff +0 -0
- package/dist/fonts/recoleta/Recoleta-Thin.woff2 +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Black.eot +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Black.ttf +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Black.woff +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Black.woff2 +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Bold.eot +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Bold.ttf +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Bold.woff +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Bold.woff2 +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Light.eot +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Light.ttf +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Light.woff +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Light.woff2 +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Medium.eot +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Medium.ttf +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Medium.woff +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Medium.woff2 +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Regular.eot +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Regular.ttf +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Regular.woff +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Regular.woff2 +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-SemiBold.eot +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-SemiBold.ttf +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-SemiBold.woff +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-SemiBold.woff2 +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Thin.eot +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Thin.ttf +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Thin.woff +0 -0
- package/dist/fonts/recoleta/RecoletaAlt-Thin.woff2 +0 -0
- package/dist/fonts/recoleta/demo.html +573 -0
- package/dist/fonts/recoleta/stylesheet.css +168 -0
- package/dist/index.d.ts +7 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/storybook.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export function ToastProvider({ children, maxToasts }: {
|
|
2
|
+
children: any;
|
|
3
|
+
maxToasts?: number;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export function useToast(): {
|
|
6
|
+
toast: (options: any) => any;
|
|
7
|
+
dismiss: any;
|
|
8
|
+
dismissAll: any;
|
|
9
|
+
toasts: any;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Toast component for displaying notifications
|
|
13
|
+
*
|
|
14
|
+
* @component
|
|
15
|
+
* @example
|
|
16
|
+
* // Using with ToastProvider
|
|
17
|
+
* const { toast } = useToast()
|
|
18
|
+
* toast({ title: "Success", description: "Your changes have been saved" })
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // Standalone toast
|
|
22
|
+
* <Toast
|
|
23
|
+
* variant="success"
|
|
24
|
+
* title="Success"
|
|
25
|
+
* description="Your changes have been saved"
|
|
26
|
+
* onClose={() => {}}
|
|
27
|
+
* />
|
|
28
|
+
*/
|
|
29
|
+
export const Toast: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
30
|
+
/**
|
|
31
|
+
* ToastTitle component - renders the title of a toast
|
|
32
|
+
*/
|
|
33
|
+
export const ToastTitle: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
34
|
+
/**
|
|
35
|
+
* ToastDescription component - renders the description of a toast
|
|
36
|
+
*/
|
|
37
|
+
export const ToastDescription: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
38
|
+
/**
|
|
39
|
+
* ToastAction component - renders an action button in a toast
|
|
40
|
+
*/
|
|
41
|
+
export const ToastAction: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
42
|
+
import * as React from "react";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Input } from "../ui/Input/Input";
|
|
2
|
+
export { Label } from "../ui/Label/Label";
|
|
3
|
+
export { Textarea } from "../ui/Textarea/Textarea";
|
|
4
|
+
export { Button, buttonVariants } from "../ui/Button/Button";
|
|
5
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from "../ui/Card/Card";
|
|
6
|
+
export { Badge, badgeVariants } from "../ui/Badge/Badge";
|