commerce-toolkit 0.0.26 → 0.0.27

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.
@@ -0,0 +1,2 @@
1
+ export { Toaster, type ToasterProps, toast } from '../../components/toaster/toaster';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toaster/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { ComponentProps } from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import { Toaster as Sonner } from 'sonner';
4
+ export type ToasterProps = ComponentProps<typeof Sonner>;
5
+ interface ToastOptions {
6
+ action?: {
7
+ label: string;
8
+ onClick: () => void;
9
+ };
10
+ dismiss?: {
11
+ label: string;
12
+ onClick: () => void;
13
+ };
14
+ description?: string;
15
+ position?: ToasterProps['position'];
16
+ }
17
+ export declare const Toaster: ({ className, ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const toast: {
19
+ success: (message: ReactNode, options?: ToastOptions) => void;
20
+ error: (message: ReactNode, options?: ToastOptions) => void;
21
+ warning: (message: ReactNode, options?: ToastOptions) => void;
22
+ info: (message: ReactNode, options?: ToastOptions) => void;
23
+ };
24
+ export {};
25
+ //# sourceMappingURL=toaster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../../src/components/toaster/toaster.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAwB,MAAM,QAAQ,CAAC;AAKjE,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAEzD,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,OAAO,CAAC,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,OAAO,GAAI,yBAAyB,YAAY,4CAa5D,CAAC;AAEF,eAAO,MAAM,KAAK;uBACG,SAAS,YAAY,YAAY;qBAgBnC,SAAS,YAAY,YAAY;uBAgB/B,SAAS,YAAY,YAAY;oBAgBpC,SAAS,YAAY,YAAY;CAgBlD,CAAC"}